ubuntu 安装mysql5.6, 二进制包解压安装
2014-10-25 23:43
429 查看
shell> groupadd mysql
shell> useradd -r -g mysql mysql
shell> cd /usr/local
shell> tar zxvf /path/to/mysql-VERSION-OS.tar.gz
shell> ln -s full-path-to-mysql-VERSION-OS mysql
shell> cd mysql
shell> chown -R mysql .
shell> chgrp -R mysql .
shell> scripts/mysql_install_db --user=mysql
shell> chown -R root .
shell> chown -R mysql data
shell> bin/mysqld_safe --user=mysql &
shell>
./bin/mysqladmin -u root password 'new-password'
shell> ./bin/mysqladmin -uroot -ppassw0rd shutdown
# Next command is optional--
shell> cp support-files/mysql.server /etc/init.d/mysql.server
./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h benny-Aspire-V5-471G password 'new-password'
bin/mysqld_safe --user=mysql 是在安全模式启动mysql,主要是用于配置root的密码。
/bin/mysqladmin -u root password 'new-password' 配置root用户的密码,前提是必须安全模式启动了mysql服务。
/bin/mysqladmin -uroot -ppassw0rd shutdown 关闭安全启动模式的服务
启动mysql服务,sudo /etc/init.d/mysql.server start
关闭mysql服务,sudo /etc/init.d/mysql.server stop
shell> useradd -r -g mysql mysql
shell> cd /usr/local
shell> tar zxvf /path/to/mysql-VERSION-OS.tar.gz
shell> ln -s full-path-to-mysql-VERSION-OS mysql
shell> cd mysql
shell> chown -R mysql .
shell> chgrp -R mysql .
shell> scripts/mysql_install_db --user=mysql
shell> chown -R root .
shell> chown -R mysql data
shell> bin/mysqld_safe --user=mysql &
shell>
./bin/mysqladmin -u root password 'new-password'
shell> ./bin/mysqladmin -uroot -ppassw0rd shutdown
# Next command is optional--
shell> cp support-files/mysql.server /etc/init.d/mysql.server
./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h benny-Aspire-V5-471G password 'new-password'
bin/mysqld_safe --user=mysql 是在安全模式启动mysql,主要是用于配置root的密码。
/bin/mysqladmin -u root password 'new-password' 配置root用户的密码,前提是必须安全模式启动了mysql服务。
/bin/mysqladmin -uroot -ppassw0rd shutdown 关闭安全启动模式的服务
启动mysql服务,sudo /etc/init.d/mysql.server start
关闭mysql服务,sudo /etc/init.d/mysql.server stop
相关文章推荐
- ubuntu mysql5.6二进制安装
- ubuntu14 安装 mysql5.6(二进制)
- ubuntu系统中安装mysql5.6(通过二进制)
- ubuntu系统中安装mysql5.6(通过二进制)
- Ubuntu 安装 Mysql 5.6 数据库
- Ubuntu 12.04下源代码安装MySQL5.6以及Python-MySQLdb
- Ubuntu 12.10 下MySQL 5.1.65 解压安装
- mysql5.6二进制安装,主从/主主复制
- (三)ubuntu 12.04安装mysql5.6
- Ubuntu 安装 Mysql 5.6 数据库
- ubuntu14.04安装mysql5.6
- Ubuntu 14.04.1 安装 mysql5.6
- windows下安装mysql5.6解压版
- ubuntu 下mysql 5.6安装、删除和配置中文乱码问题
- ubuntu13.10安装二进制mysql
- Ubuntu 12.10 下MySQL 5.1.65 解压安装
- ubuntu 下mysql 5.6安装、删除和配置中文乱码问题
- ubuntu 通过ppa源安装mysql5.6
- CentOS 6.2下二进制安装 MySQL 5.6