How do I access a database in Linux?

Phạm Quyết

New member
How do I access a database in Linux?
Answer
In order to access your MySQL database, please follow these steps:
  1. Log into your Linux web server via Secure Shell.
  2. Open the MySQL client program on the server in the /usr/bin directory.
  3. Type in the following syntax to access your database: $ mysql -h {hostname} -u username -p {databasename} Password: {your password}
 

Tìm kiếm

Back
Top