gpt4 book ai didi

MySQL 说用户访问被拒绝

转载 作者:行者123 更新时间:2023-11-29 00:28:38 25 4
gpt4 key购买 nike

我创建了一个表单,它应该将三个变量传递到我的数据库中。我无法将我的变量提交到数据库,它给了我这个错误:

"Warning: mysqli_connect() [function.mysqli-connect]: (28000/1045): Access denied for user 'username'@'xx.xx.xx.xx' (using password: YES) in /home/simples2/public_html/insert.php on line 2

Failed to connect to MySQL: Access denied for user 'username'@'xx.xx.xx.xx' (using password: YES)

Warning: mysqli_query() expects parameter 1 to be mysqli, boolean given in /home/simples2/public_html/insert.php on line 13

Warning: mysqli_error() expects parameter 1 to be mysqli, boolean given in /home/simples2/public_html/insert.php on line 15
Error:"

我不确定这里需要做什么。我已经尽我最大的能力检查了拼写、密码和语法,但我做不到。

最佳答案

为此,我将验证 MYSQL 数据库用户是否允许该用户名允许来自该 ip 地址的连接。似乎用户帐户设置为 'username'@localhost 或密码不正确

关于MySQL 说用户访问被拒绝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17690389/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com