• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

Upgrade problem : Cannot connect to mysql server

D

Dupont

Guest
Hello,

I've got a problem when upgrading SiteBuilder from 4.2.0 to 4.5.0. Summary :

1) vi /etc/apt/sources.list (deb http://autoinstall.plesk.com/debian/SiteBuilder_4.5.0 etch all)
2) apt-get update
3) apt-get -f upgrade (problem libc6 !)
4) cd /var/cache/apt/archives
5) dpkg -i --force-all libc6_2.3.6.ds1-13etch7_amd64.deb
6) apt-get update
7) apt-get -f upgrade

Output :

Cannot connect to mysql server. SiteBuilder configuration will exit now.
Make sure mysql server is installed and running.
If root password is not empty put it in /root/.my.cnf
After finishing the installation run sb_config manually.

8) vi /root/.my.cnf

[mysqladmin]
user = root
password = *********

9) apt-get -f upgrade

(same error)
 
Episode 2 :

10) vi /root/.my.cnf

[mysql]
password=*****

11) mysql

(works. login automatically)

12) apt-get -f upgrade

Cannot connect to mysql server. SiteBuilder configuration will exit now.
Make sure mysql server is installed and running.
If root password is not empty put it in /root/.my.cnf
After finishing the installation run sb_config manually.
 
If Sitebuilder screen shows 4.5 version it looks like database was upgraded already.
Did you try to run 'sb_config' utility for configuration?

Try to set --db_admin_name and --db_admin_passwd password parameters for 'sb_config' utility using this way:

# sb_config --db_admin_name root --db_admin_passwd ROOT_PASSWORD

After that run "sb_config --update_modules --update_templates --update_locales"

Also check Sitebuilder database version with following request:

# mysql -uroot -pROOT_PASSWORD sitebuilder3 -e 'select * from config_param;'
 
Back
Top