我不知道是否会澄清这个问题,但我已经使用特定域上的根帐户( MySQL )在CentOS 6.3上安装了f.ex。但是当我试图登录到它时,我会被问到root@localhost帐户的密码,我没有权限访问它。如何登录到安装在“mydomain”而不是“localhost”上的MySQL?
我尝试过使用bind=‘domain’编辑my.cnf,但是它没有帮助,它仍然需要本地主机密码。
我很难理解为什么我无法在Centos 7的新安装中登录到新的mqsql服务器安装。以下是我所做的:
最低安装CentOS 7
yum update
yum install apache
yum install mysql
setenforce 0
mysql_secure_installation
除了最后一个之外,所有这些都运行得很好。我明白了:保护MySQL服务器部署。
Enter password for user root:
Error: Access denied for user 'root'@'localhost' (using password
Can't connect to a local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)
我收到了这条消息,但只有当我没有以root用户身份登录时。
为什么不是每个人都能访问mysql呢?
它在用户htorrent上不工作,它作为根用户工作。我试过给苏多许可,但不起作用。我在CENTOS 6.10 (最终)版本上。
usermod -aG wheel htorrent
我试过以下几种方法,但不起作用。我如何让每个用户访问mysql?
我已经安装了Mysql 14.14 5.7.9,用于使用EditLine包装器在CentOS Linux发布版7.1.1503上使用
我使用以下命令更改了根密码:
alter user 'root'@'localhost' identified by 'XXXXXXX';
flush privileges;
重新登录后
[root@server ~]# mysql -u root -p
Enter password:
错误1524 (HY000):插件‘*A 6074285732753D325C55AD74E7517CF442C1A81
在CentOS 5.x上,我使用了webmin面板,在mysql设置中,除了本地主机之外,我还试图允许"root“从我的本地ip登录。在主机列表中,我有"any“或"localhost",我试图使它成为"localhost,84.xx.xx.xx”,以为它将允许我使用mysql管理员程序从本地计算机登录。
在保存了输入的数据之后,我对mysql做了很多事情。
韦伯明说DBI connect failed : Access denied for user ''@'localhost' to database 'mys
我已经在MySQL 6.x服务器上运行了CentOS服务器5.1.73。我已经为root用户设置了密码。当我指定以下命令时,它会将我记录到mysql。
[root@sandbox ~]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 60384
我正在检查主机名
mysql> SELECT @@hostname;
+-------------------------+
| @@hostname
我用Nginx在Centos 7上安装了mysql-community-server-8.0.13-1.el7.x86_64,并添加了phpMyAdmin来管理数据库,但我一直从phpMyAdmin获得错误Cannot log in to the MySQL server。我已经尝试了以下几天并一直在挣扎:
更改了位于/etc/phpMyAdmin/config.inc.php上的一些参数(在堆栈溢出中建议使用),如下所示,但没有运气:
$cfg‘’Servers‘’host‘= 'localhost';$cfg’‘Servers’connect_type‘= 's
我不能登录到Plesk控制面板。我有个错误。请给我一个关于这个错误的提示。我的服务器是centos 6安装。
ERROR: PleskDBException: Unable to connect to database: mysql_connect(): No such file or directory /var/lib/mysql/mysql.sock (Error code: 2002). Please check that database server is started and accessible. (Abstract.php:69)
我在Centos 6.5平台上安装了phpMyAdmin-4.2.9.1-english。
2.6.32-431.23.3.el6.x86_64 #1 SMP清华Jul 31 17:20:51 UTC 2014 x86_64 GNU/Linux
当我登录时,我会看到以下屏幕:
phpMyAdmin - Error
You should upgrade to MySQL 5.5.0 or later.
我使用的是服务器版本: 5.1.73
我该怎么办?
我已经登录到CentOS服务器,我想查看所有mysql数据库。因此,我切换到Linux root用户,并尝试登录mysql。通常(在其他服务器上),我使用一个简单的mysql命令完成此操作,但在这里我得到了一个访问被拒绝的消息:
[root@our.server.com kramer65]# mysql
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
我想,如果我是Linux的root用户,我可以做任何我想做的事情。有没有办法让我以Linux r
我刚刚第一次使用CentOS在yum机器上安装了Mysql。安装没有错误。然后我遵循了这些步骤:
$ sudo /sbin/service mysqld start --skip-grant-tables --skip-networking
$ sudo /usr/bin/mysql_secure_installation
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!