Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES),该如何处理
程序员文章站
2022-06-17 13:48:10
...
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES)
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES) in E:\web\business\ty_admin\ty_config.inc.php on line 12
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in E:\web\business\ty_admin\ty_config.inc.php on line 13
在本地调试的好好的 什么问题都没有
但是传到服务器就出错了 不知道为什么
------解决方案--------------------
用phpmyadmin将root改成全局(输入%),就可以了
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES) in E:\web\business\ty_admin\ty_config.inc.php on line 12
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in E:\web\business\ty_admin\ty_config.inc.php on line 13
在本地调试的好好的 什么问题都没有
但是传到服务器就出错了 不知道为什么
------解决方案--------------------
用phpmyadmin将root改成全局(输入%),就可以了
相关文章
相关视频
推荐阅读
-
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES),该如何处理
-
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES),该如何处理
-
phpmyadmin的#1045 - Access denied for user 'root'@'localhost' (using password: NO,该如何解决
-
phpmyadmin的#1045 - Access denied for user 'root'@'localhost' (using password: NO,该如何解决
-
phpmyadmin的#1045 - Access denied for user 'root'@'localhost' (using password: NO,该如何解决