Fedora release 23 (23)-我安装了phpMyAdmin,我导航到它(,或使用。)。id=root,而我的密码不起作用,那么就得到消息Cannot log in to the MySQL server。
不过,我可以使用sudo mysql -u root -p登录到MySql,然后输入我的密码。在mysql上,我甚至尝试使用以下命令更改我的密码(更改为相同的密码):
UPDATE mysql.user SET Password=PASSWORD("mypasswordhere") WHERE User="root"; and, FLUSH P
我已经在我的机器上安装了MySQL。我可以通过从start菜单直接打开MySQL 5.6命令行客户机登录,它提示我输入密码。当我输入正确的密码,它允许我进入,如果它是错误的,它会踢出我。
当我从命令提示符运行MySQL时,登录(使用根用户或我创建的另一个用户)的唯一方法是不输入密码。如果我输入密码,上面写着access denied to root@localhost.yada yada . using password:YES
总之,如果我键入
mysql -u root -p
password: [mypassword]
它不起作用,引发错误Access denied, using pas
我已经试了很多想摆脱这一切。但我该怎么解决呢?
sudo mysql_secure_installation
输出:
Securing the MySQL server deployment.
Enter password for user root:
Error: Access denied for user 'root'@'localhost' (using password: YES)
sudo mysql -u root -p
同样的结果。不能重置密码。
当试图进入mysql时,给出以下错误:
sudo mysql
ERROR 1045 (28000
我使用phpmyadmin(在Wamp中),而没有root密码。我想为root和页面设置密码,并为root设置密码。现在,每当我进入localhost/phpmyadmin页面时,它都会给出以下错误。
MySQL said: Documentation
#1045 - Access denied for user 'root'@'localhost' (using password: NO)
phpMyAdmin tried to connect to the MySQL server, and the server rejected
the connecti
我必须执行MySQL命令,而不输入MySQL提示符任何交互。为此,我必须在命令行指定密码,如
mysql -u 'user' -p'password' command;
虽然我的用户(根用户)没有密码(在mysql.user表中签入),但我无法使用它在命令行运行MySQL命令,而不输入提示符。
我试过用以下方法:
mysql -u root 'followed by query'
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using
我在XAMPP的控制面板中启动了MySQL,并试图从MySQL命令行登录到MySQL:
C:/xampp/mysql/bin> mysql -u root -p pwd
获取此错误:
ERROR 2059 (HY000): Authentication plugin 'caching_sha2_password' cannot be loaded: The specified module could not be found.
即使运行命令mysql也会出现此错误。
我在上面找到了其他线程,因此出现了相同的错误,解决方案是进入my.ini配置文件,然后在mysqld :
我编辑了deian.cnf以更改mysql (ubuntu服务器)的密码。
sudo vi /etc/mysql/debian.cnf
我变了
user=debian password=*
至
user=debian password=mypassword
然后我尝试进入mysql的控制台。
mysql -udebian-sys-maint -p
输入密码'mypassword‘
它报告说
mysql error 1045(280000) access denied for user 'debian-sys-maint '@' localhost using p
我刚刚在Mac上安装了MySQL。下一步是设置根用户密码,所以我接下来这样做:
启动终端应用程序以访问Unix命令行。在Unix提示符下执行以下命令:
$ cd /usr/local/mysql/bin $ ./mysqladmin -u根密码' password '
但是,当我执行以下命令时
$ ./mysql -u root,这是答案:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 224
Server version: 5.5.13 MySQL C
数据库密码最近被更改为我正在工作的一个网站(因为我无法进入的原因)。因此,Joomla不再能够连接到DB,从而提示错误消息:Database connection error (2): Could not connect to MySQL.。
幸运的是,我知道我需要简单地更新configuration.php文件中的密码才能使用新密码,但是我所有的更改尝试都失败了。出于安全原因,我确信,我完全无法上传修改后的configuration.php文件。通常,我很高兴听到配置文件不能被修改,但在这一种情况下,我需要修改它。
我该如何修改文件呢?
问题类似于,但是我想要的SELECT查询是超长的(差不多1000行)。
所以从长远的角度来看,
mysql -e "SELECT * from myTable WHERE id NOT IN (*lots of specific id numbers*)" -u myuser -pxxxxxxxxx mydatabase > output.txt
我怎样才能做到这一点?
我还试着进入数据库本身,在那里运行查询,最后添加INTO OUTFILE '/tmp/querydump.csv',但是得到了错误;
错误1045 (28000):拒绝用户'adm