码迷,mamicode.com
首页 > 数据库 > 详细

MySQL

时间:2015-07-07 14:41:22      阅读:112      评论:0      收藏:0      [点我收藏+]

标签:

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

 

MySQL

标签:

原文地址:http://www.cnblogs.com/qike/p/4626830.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!