export MYSQL_HOME="/usr/local/mysql" export PATH="$PATH:$MYSQL_HOME/bin" 保存退出 [root@localhost support-files]# source /etc/profile
8、添加自启动服务
[root@localhost support-files]# chkconfig --add mysql [root@localhost support-files]# chkconfig mysql on 9、启动mysql
[root@localhost support-files]# service mysql start 10、登录mysql及改密码与配置远程访问
[root@localhost support-files]# mysqladmin -u root password ‘your_password‘ #修改root用户密码 [root@localhost support-files]# mysql -u root -p #登录mysql,需要输入密码 mysql>GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘%‘ IDENTIFIED BY ‘your_password‘ WITH GRANT OPTION; #允许root用户远程访问 mysql>FLUSH PRIVILEGES; #刷新权限 mysql>exit
总结了一下网上MySQL 5.6.26 利用tar.gz包安装的MysSQL数据库会遇到的问题
标签: