I have a very general question about unix.
After using the ls command in the shell prompt, the following is listed
students
students is a database which i wanted to access.
How to access and query this database? Should i use sudo su commands?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First you determine the database type, where it is located (host address), the username, and password to access it. The you determine if you have the appropiate client to connect to it. Then you connect and run your sql query.
Is this a sqllite or berkly db? Mysql?
If MySql, and you have the mysql client installed, and the db is on the localhost… do this:
Where username is the username to connect. It will prompt for password. When at the mysql prompt see all dbs with this:
Select a db like this:
Then query away.