0
mysql 5.6 on linux RPM安装
126
3页
21次
墨值0
https://edelivery.oracle.com
解压后只需如下 3 rpm
[wxapp@data1 MySQL]$ ls -l
total 82200
-rw-------. 1 wxapp wxapp 18439808 Jun 11 15:17 MySQL-client-advanced-5.6.19-1.el6.x86_64.rpm
-rw-------. 1 wxapp wxapp 3300928 Jun 11 15:18 MySQL-devel-advanced-5.6.19-1.el6.x86_64.rpm
-rw-------. 1 wxapp wxapp 62429752 Jun 11 15:18 MySQL-server-advanced-5.6.19-1.el6.x86_64.rpm
rpm -ivh --replacefiles MySQL-server-advanced-5.6.19-1.el6.x86_64.rpm
rpm -ivh --replacefiles MySQL-devel-advanced-5.6.19-1.el6.x86_64.rpm
rpm -ivh --replacefiles MySQL-client-advanced-5.6.19-1.el6.x86_64.rpm
A random root password has been set. You will find it in '/root/.mysql_secret'.
随机生成的 root 密码
[root@data1 init.d]# cat /root/.mysql_secret
# The random password set for the root user at Wed Jun 11 15:26:42 2014 (local time):
g6c9BE4eUse4MXqu
修改 root 密码,初始化
[root@data1 init.d]# /usr/bin/mysql_secure_installation
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
In order to log into MySQL to secure it, we'll need the current
password for the root user. If you've just installed MySQL, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.
Enter current password for root (enter for none):
OK, successfully used password, moving on...
Setting the root password ensures that nobody can log into the MySQL
root user without the proper authorisation.
You already have a root password set, so you can safely answer 'n'.
Change the root password? [Y/n] y
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
... Success!
By default, a MySQL installation has an anonymous user, allowing anyone
to log into MySQL without having to have a user account created for
them. This is intended only for testing, and to make the installation
go a bit smoother. You should remove them before moving into a
production environment.
Remove anonymous users? [Y/n] y
... Success!
Normally, root should only be allowed to connect from 'localhost'. This
ensures that someone cannot guess at the root password from the network.
Disallow root login remotely? [Y/n] y
... Success!
By default, MySQL comes with a database named 'test' that anyone can
access. This is also intended only for testing, and should be removed
before moving into a production environment.
Remove test database and access to it? [Y/n] y
- Dropping test database...
... Success!
- Removing privileges on test database...
... Success!
Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.
Reload privilege tables now? [Y/n] y
... Success!
All done! If you've completed all of the above steps, your MySQL
of 3

评论

最新上传
暂无内容,敬请期待...
下载排行榜
周榜月榜总榜
近期活动
全部
暂无活动,敬请期待...
相关课程
全部
暂无课程,敬请期待...