3 January 2013

The MySQL command line client provides you with a means of interacting with your MySQL server from the command line. Open terminal window to connect to MySQL server also you may have to do that via SSH tunnel.

Source code viewer
  1. /*
  2.  * From command line you can get to mysql using next command(replace the username with the username witch ):
  3.  * mysql -u username -p
  4.  */
  5.  
  6. CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';
  7.  
  8. GRANT ALL ON database.* TO 'username'@'localhost';
Programming Language: MySQL