我下载了ff: Mysql Workbench、Mysql Community Server和Xampp (最新版本)。
我发现最近的xampp版本不再使用MySQL作为数据库服务器,而是使用MariaDB。显然,MySQL工作台与MariaDB不兼容。
在之前的论坛中,有人建议关闭MariaDB并打开MySQL服务器,它会自动连接到xampp本地主机。,相反,它显示一条错误消息。
请告知需要配置哪些文件才能将我的xampp localhost和我的管理服务器控制用户连接到OS X (macbook pro)中的mysql数据库服务器。
当我尝试从本地的XAMPP php连接到远程mysql数据库时,它说
Warning: mysql_connect() [function.mysql-connect]: Unknown MySQL server host
'testhost.testserver.com' (11004) in D:\xampp\htdocs\cvsprojects\test\initdb.php
on line 24
我确信mysql主机、用户名、密码是正确的,可以连接。
我已经在我的linux (suse) pc上安装了xampp。然后用命令启动lampp
/opt/lampp/lampp启动
上面写着:
Starting XAMPP for Linux 1.7.4...
XAMPP: Starting Apache with SSL (and PHP5)...
XAMPP: Starting MySQL...
XAMPP: Starting ProFTPD...
XAMPP for Linux started.
但是,当我试图连接到数据库时,我使用
mysql -u根-p
它给了我以下错误:
If 'mysql' is not
我想问一下XAMPP mySQL数据库的配置。
我已经将我的xampp文档根设置为驱动D,现在我无法连接到SQL数据库,并且总是出错。
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in D:\localserver\connection.php:3 Stack trace: #0 D:\localserver\login.php(4): include() #1 {main} thrown in D:\localserver\connection.php on line 3
处理连接的文件如下所
我正在使用XAMPP for Windows5.6.14 .yesterday我安装了XAMPP,并配置了Apache和MySQL端口并连接到本地主机。今天,当我在启动MySQL和Apache后尝试连接到本地主机phpmyadmin时,我也能够创建数据库。
此网页不可用
ERR_CONNECTION_REFUSED
Google Chrome连接到localhost的尝试被拒绝。网站可能已关闭,或者您的网络配置不正确。
我怎么才能解决这个问题呢?
我正在尝试连接到服务器上托管的mysql。使用的面板是cpanel。但是我无法连接到数据库。使用xamp在本地系统上运行php代码。错误在下面。
Warning: mysql_connect(): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in C:\xampp\htdoc