①.).修改当前目录拥有者为mysql用户:执行命令?chown -R mysql:mysql ./
可能出现的问题:
-bash: ./scripts/mysql_install_db: /usr/bin/perl: bad interpreter: No such file or directory提示注释器错误,没有/usr/bin/perl文件或者档案,解决办法(安装perl跟perl-devel即可):执行 ?yum -y install perl perl-devel
解决办法:yum -y install autoconf
到此数据库安装完毕
rm -rf /etc/my.cnf
没有初始化权限表
[root@localhost ~]# cd/usr/local/mysql
To start mysqld at boot time you have to copysupport-files/mysql.server to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER!To do so, start the server, then issue the following commands:
Alternatively you can run:./bin/mysql_secure_installation
which will also give you the option of removing the testdatabases and anonymous user created by default.?This isstrongly recommended for production servers.
See the manual for more instructions.
You can start the MySQL daemon with:cd . ; ./bin/mysqld_safe
You can test the MySQL daemon with mysql-test-run.plcd ./mysql-test ; perl mysql-test-run.pl
Please report any problems with the ./bin/mysqlbug script!
从任何主机上使用root用户,密码:youpassword(你的root密码)连接到mysql服务器:
操作完后切记执行以下命令刷新权限?
FLUSH PRIVILEGES;
/usr/local/mysql/bin/mysqladmin -u root -p shutdown
# 在profile文件末尾增加两行PATH=/usr/local/mysql/bin:/usr/local/mysql/lib:$PATHexport PATH
source /etc/profile
以上就是土嘎嘎小编大虾米为大家整理的相关主题介绍,如果您觉得小编更新的文章只要能对粉丝们有用,就是我们最大的鼓励和动力,不要忘记讲本站分享给您身边的朋友哦!!