Answer the question
In order to leave comments, you need to log in
How to check MySQL version if you only have access to ftp and Wordpress console?
Let me explain - I want to use the Duplicator plugin to re-upload the finished site to local hosts so that I can work there without fear of ruining everything.
Answer the question
In order to leave comments, you need to log in
Place a php file via FTP with the phpinfo() command, open it through a browser, search for the mysql section in it, you will see something like: Client API version 5.5.52
mysql> SELECT VERSION();
+-----------------+
| VERSION() |
+-----------------+
| 5.6.30-1~bpo8+1 |
+-----------------+
1 row in set (0,01 sec)
in the WP config you look at the parameters of the connection to the database
/** The name of the database for WordPress */
define('DB_NAME', 'assolo0k_clex');
/** MySQL database username */
define('DB_USER', 'assolo0k_clex');
/** MySQL database password */
define('DB_PASSWORD', '**************');
/** MySQL hostname */
define('DB_HOST', 'localhost');
/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');
+-------------------------+---------------------------------+
| Variable_name | Value |
+-------------------------+---------------------------------+
| innodb_version | 5.7.20-19 |
| protocol_version | 10 |
| slave_type_conversions | |
| tls_version | TLSv1,TLSv1.1 |
| version | 5.7.20-19-beget-5.7.20-20-1-log |
| version_comment | (LTD BeGet) |
| version_compile_machine | x86_64 |
| version_compile_os | Linux |
+-------------------------+---------------------------------+
$con = mysql_connect('HOSTNAME','USERNAME','PASSWORD');
mysql_select_db('DATABASENAME', $con);
$query = "SHOW VARIABLES LIKE '%version%'";
$result = mysql_query($query);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question