MySQL

sudo /usr/local/mysql/support-files/mysql.server start
sudo /usr/local/mysql/support-files/mysql.server stop

/usr/local/mysql/bin/mysql -u root
SET PASSWORD FOR 'root'@'localhost' = PASSWORD('514112');
exit

/usr/local/mysql/bin/mysql -h localhost -u root -p
CREATE DATABASE database_name;

/usr/local/mysql/bin/mysql -h localhost -u root -p database_name < sql_file_name

 

posted @ 2015-07-07 14:09  qike  阅读(118)  评论(0编辑  收藏  举报