ubuntu下mysql操作

来源:互联网 发布:房间平面图软件 编辑:程序博客网 时间:2024/04/27 17:00

首先,安装数据库

 1. sudo apt-get install mysql-server
 
 2. apt-get isntall mysql-client
 
 3.  sudo apt-get install libmysqlclient-dev

停止、启动、重启mysql服务:

 sudo /etc/init.d/mysql stop


 sudo /etc/init.d/mysql start


 sudo /etc/init.d/mysql restart

登陆mysql:

mysql -u  root -p


0 0
原创粉丝点击