您的位置:首页 > 数据库 > MySQL

ubuntu安装MySQL

2016-01-30 10:47 621 查看

install mysql56 on ubuntu14.04

go to www.mysql.com and download mysql server file

enter the direction of the download file

extract mysql tar file

tar -xvf mysql-server_5.6.26-1ubuntu14.04_i386.deb-bundle.tar


install dependencies

sudo dpkg -i mysql-common_5.6.26-1ubuntu14.04_i386.deb
sudo apt-get install libaio1


install mysql server

sudo dpkg -i mysql-community-server_5.6.26-1ubuntu14.04_i386.deb


install mysql client otherwise you can not use mysql command line in the terminal

sudo dpkg -i mysql-community-client_5.6.26-1ubuntu14.04_i386.deb


stop & start the service of mysql

start:

sudo /etc/init.d/mysql start


stop:

sudo /etc/init.d/mysql stop


or:

start:

sudo service mysql start


stop :

sudo service mysql stop


done
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  ubuntu mysql