• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

moving mysql (literally)

1

1-mehmeh

Guest
Greetings,

I am attempting to move my MySQL database files, literally. I am not exporting my database to another server. I am moving the files themselves to another location on the same box

I also want to change the path to mysql.sock

Ive moved everything into /mysql and edited /etc/my.cfg accordingly.

Unfortunately, I see two things happening.

1. Despite the fact that I have also changed the path the mysql.sock inside the same /etc/my.cfg, certain items are still attempting to connect via the old socket location, and 2., this is occurring:


Code:
Starting xinetd service...  done
Starting named service...                                            done
Starting mysqld service...                                            done
Starting qmail service...                                             done
Starting courier-imap service...                                      done
Starting postgresql service...                                        not installed
Starting psa-spamassassin service...                               done
                                          
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
websrvmng: Unable to connect to Plesk Database: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
System error 2: No such file or directory
websrvmng: Unable to connect to Plesk Database: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
System error 2: No such file or directory
websrvmng: Unable to connect to the mysql database

System error 2: No such file or directory
websrvmng: Unable to connect to the mysql database

System error 2: No such file or directory

My /etc/my.cfg is edited properly, has the right paths, ..the directory that is holding the files is owned by mysql/mysql and has the proper permissions.

Ideas?
 
actually, Ive tracked down the source of the file error...

An ls-la of /var/lib/mysql shows me that the three innodb files were remade.. and because the horde and spamassasin directories were moved before, the files that would go in there cannot be remade.

It would be immensely helpful to know EXACTLY what file is responsible for the configuration of all things Plesk.

I should have added earlier that I did, in fact, edit /etc/psa/psa/conf and change the MySQL values:


# MySQL
MYSQL_VAR_D /mysql/data
MYSQL_BIN_D /usr/bin

and yet it remade files (in the wrong location)??

How does one change the location of the MySQL database directory, if not through /etc/psa/psa.conf ?
 
Back
Top