CentOS6.7 Final
MySQL-5.5.48-1.linux2.6.x86_64.rpm-bundle.tar
rz
,就可以从本地选择要上传的文件了。
默认上传至服务器的usr/local
目录下chmod u+x MySQL-5.5.48-1.linux2.6.x86_64.rpm-bundle.tar
tar -xvf MySQL-5.5.48-1.linux2.6.x86_64.rpm-bundle.tar
,得到如下文件:MySQL-client-5.5.48-1.linux2.6.x86_64.rpm
MySQL-shared-compat-5.5.48-1.linux2.6.x86_64.rpm
MySQL-test-5.5.48-1.linux2.6.x86_64.rpm
MySQL-server-5.5.48-1.linux2.6.x86_64.rpm
MySQL-embedded-5.5.48-1.linux2.6.x86_64.rpm
MySQL-devel-5.5.48-1.linux2.6.x86_64.rpm
MySQL-shared-5.5.48-1.linux2.6.x86_64.rpm
chmod u+x MySQL-server-5.5.48-1.linux2.6.x86_64.rpm
chmod u+x MySQL-client-5.5.48-1.linux2.6.x86_64.rpm
rpm -ivh MySQL-server-5.5.48-1.linux2.6.x86_64.rpm
,有时候会出现下面的消息:rpm -e mysql-libs-5.1.73-5.el6_6.x86_64 --nodeps
rpm -ivh MySQL-server-5.5.48-1.linux2.6.x86_64.rpm
rpm -ivh MySQL-client-5.5.48-1.linux2.6.x86_64.rpm
/usr/bin/mysql_secure_installation
service mysql start
install & start
Navicat
连接,报错:
Host 'xxx.xx.xxx.xxx' is not allowed to connect to this MySQL server
mysql -u root - p
Enter password:
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION;
(授权,用户root使用password从任何主机连接到mysql服务器。)
flush privileges;