plesk安装mysql失败

dfty9e19  于 2021-06-20  发布在  Mysql
关注(0)|答案(1)|浏览(429)

尝试安装在一个ec2(目前有3个网站运行)我的普莱斯克。据我所知,plesk只能在香草服务器上工作(希望不是这样)。
线路上的安装崩溃:

Synchronizing state of mysql.service with SysV init with /lib/systemd/systemd- 
sysv-install...
Executing /lib/systemd/systemd-sysv-install enable mysql

在此之后,错误为:

Trying to establish test connection... mysql: [Warning] World-writable config                
 file '/root/.my.cnf' is ignored.
 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: 
 NO) failed
 One more attempt to connect

 ERROR while trying to establish test connection. If you are installing Plesk 
on an already configured MySQL server, you need to specify the administrator's 
credentials to succeed with the installation. To do this, you need to create a 
file - /root/.my.cnf with the 'client' section where you need to provide user 
and its password ("user = $admin_name" and "password = $admin_pass"). After 
installation is finished, the file /root/.my.cnf will be renamed to 
/root/.my.cnf.bak
Check the error reason(see log file: 
/var/log/plesk/install/plesk_17.8.11_installation.log), fix and try again

*****problem report*****

ERROR while trying to establish test connection. If you are installing Plesk on 
an already configured MySQL server, you need to specify the administrator's 
credentials to succeed with the installation. To do this, you need to create a 
file - /root/.my.cnf with the 'client' section where you need to provide user 
and its password ("user = $admin_name" and "password = $admin_pass"). After 
installation is finished, the file /root/.my.cnf will be renamed to 
/root/.my.cnf.bak
Check the error reason(see log file: 
/var/log/plesk/install/plesk_17.8.11_installation.log), fix and try again
sh: 1: /etc/init.d/psa: not found

我添加了文件/root/.my.cnf,如下所示:

Client
User: xyz
Password: xyzxyz

但它仍然无法获取或使用它(一次又一次地更改权限)。
有人能克服这个错误吗?
干杯

bfhwhh0e

bfhwhh0e1#

是的,可以在已经安装了mysql的服务器上安装plesk。需要创建一个文件/root/.my.cnf,该文件具有mysql的root访问权限:


# cat /root/.my.cnf

[client]
user = root
password = root_password

但不建议在已经运行站点的服务器上安装plesk,因为apache和nginx配置文件可以更改。

相关问题