MySQL PHP incompatibility

后端 未结 10 1826
天涯浪人
天涯浪人 2020-11-28 07:42

I\'m running WAMP locally, but connecting to a remote MySQL database. The local version of PHP is the latest 5.3.0.

One of the remote databases, being version 5.0.45

10条回答
  •  时光取名叫无心
    2020-11-28 08:04

    After lots of search and tries I found a way without needage to any downgrade/upgrade of MySQL and any affect on other users of running instance of MySQL.

    The solution is to resetting password by:

    for MySQL versions newer than 5.7.5 ( > 5.7.5):

    ALTER USER 'mysqlUsername'@'hostname' IDENTIFIED WITH mysql_native_password BY 'mysqlUsernamePassword';

    for older versions of MySQL: ( <= 5.7.5)

    SET PASSWORD FOR 'mysqlUsername'@'hostname' = PASSWORD('mysqlUsernamePassword');

    I found the point here!

    It made mine working well!

提交回复
热议问题