Access denied after setting user's password with SHA256 in phpMyAdmin

后端 未结 3 1355
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-30 14:37

After seeing that default passwords generated by phpMyAdmin used mysql_native_password and therefore hashes didn\'t changed when equal passwords where used, I updated one us

3条回答
  •  北荒
    北荒 (楼主)
    2020-11-30 15:14

    I know the answer has been up there, but I wanna just put some instruction that help me to solve this problem. First: was hard to me change the authentication type of mysql, I couldn't to that and I couldn't update PHP from MAC system, I don't know how to to that and I just didn't wanna mess with everything, so what I did? I installed php from BREW and I've changed the httpd.conf.

    1. install BREW.

    2. install php from brew.

    3. open the file [httpd.conf] using terminal:

      sudo nano /etc/apache2/httpd.conf
      
    4. go to line:

      LoadModule php7_module libexec/apache2/libphp7.so
      

      and comment it.

    5. insert this line:

      LoadModule php7_module /usr/local/opt/php/lib/httpd/modules/libphp7.so
      

    So, you just change the PHP MAC system to PHP BREW - that is updated, new version.

提交回复
热议问题