This errors block me, I can remote read data but I can't update,add mysql data...
Config:
PHPMYADMIN
php 7.0
Mysql5.7
Ubuntu zesty
Nginx
HELP!
The username with which PhpMyAdmin accesses the db is not properly configured. Have a look in config.inc.php and update it there.
Related
I have a Raspberry Pi (first model) I use as a server. I followed a tutorial and installed Apache2, MySQL, Phpmyadmin etc.
I have also set up a ddns for my home network to be able to connect to it wherever I am, and of course forwarded the necessary ports.
At first everything worked wonders.
I could connect to the database using phpmyadmin by navigating to adress/phpmyadminfrom any network.
I could also use HeidiSQL to connect to the database, again from any network.
The MySQL version I had at this time was v5.5. I wanted a feature available on v5.6 but this version was not available on my RPi (ARMv61). Instead it seemed like MariaDB should do the trick. So I updated to MariaDB using the command:
sudo aptitude install mariadb-server
Now I am not able to connect through HeidiSQL anymore, Phpmyadmin still works though from any network just like previously. Trying to connect with HeidiSQL I get the output (no matter what username/password i try):
Can't connect to MySQL server on 'adress' (10061)'
mysql -V gives output:
mysql Ver 15.1 Distrib 10.0.27-MariaDB, for debian-linux-gnueabihf (armv7l) using readline 5.2
My RPi info is
Linux redface 4.4.26+ #915 Thu Oct 20 17:02:14 BST 2016 armv6l GNU/Linux
The user privileges are available in the image below
How can I connect to the database again using HeidiSQL? Have I missed something with the user privileges?
With phpmyadmin I use the username root
This particular error is not about permissions.
The code (10061) is WSAECONNREFUSED -- a Windows socket error code for Connection refused, not to be confused with "access denied."
Connection refused typically means no service is listening on the target IP address and port. MariaDB is not listening on 0.0.0.0:3306.
mysql -V only tells you the installed client version -- it doesn't tell you anything about the MariaDB server.
Access to phpMyAdmin doesn't tell you anything, either, because with it, you're not talking to the database server remotely -- you're talking to your web server remotely, and your web server is running code that talks to the database locally from within the same machine, and often uses a different mechanism of server access that is not TCP/IP.
Check the config file for a commented-out bind_address=0.0.0.0 or similar.
https://mariadb.com/kb/en/mariadb/configuring-mariadb-for-remote-client-access/
System Preferences show MySQL is running. I can log into MySQL in Terminal logging is root.
I have set up a local host at "localhost/~jason/". Installed phpMyAdmin to "localhost/~jason/phpMyAdmin" which seems to work. But when I try to log in as root I get "Cannot log in to the MySQL server".
I am running OSX 10.10.3. MySQL 5.6.25. phpMyAdmin 4.4.9.
You have to check your config.inc.php and try to switch between localhost and 127.0.0.1 to connect to the MySQL server
have you tried WAMP? It`s much easier and simpler. Only takes a couple of minutes to set up and it has the newest PHP and MySQL versions.
I have a centos server running nginx + php-fpm that will not connect to an external database for the purpose of a wordpress install.
I can ssh into the webs erver and run mysql to connect to the external mysql database fine but when trying to us php to connect to the database it fails.
Where should I look to resolve this issue?
It is possible for the problem to be related to selinux (as it was in my case today).
Try to run
setsebool httpd_can_network_connect_db on
Or if that doesn't work:
setenforce 0
I've set up an Apache 2.2 and PHP 5.3 server on my Windows 7 machine. However, phpinfo() tells me that I have MySQL installed as well, but I had no clue I do. I'm having trouble finding the installation, so how can I find the path to MySQL? I know how to do so with Linux (whereis MYSQL), but what do I do with Windows?
If you didn't setup MySQL explicitly, and you didn't install a complete WAMP installation, you don't have MySQL. PHP just checks if the MySQL library is installed. If you try to connect, it will probably fail.
I would check under C:\Program Files\MySql or under c:\MySql
Also, MySql typically is configured to run on port 3306; so I would
check whether you have this port open on your local computer. How?
Just telnet to port 3306 on localhost and see if you can connect. If
you can, most likely MySQL is running on your PC and you should be
able to connect to it.
Read the MySQL Documentation regarding this topic.
I have MySQL installed in the /usr/local/bin/. I need to be able to connect to the MySQL database, however, the mySQL gem cannot connect to my database, and it seems that it is looking for the database in the /opt folder.
Can anyone suggest how I can fix this?
Some thoughts about this:
Have you checked if MySQL is actually running? In most linux environments this can be done on the command line by executing "/etc/init.d/mysql status" or simply connecting to the database with the command line client.
I think your configuration should point to "localhost" when running on the same machine and is then using either sockets or tcp connections to connect to the database, so the /opt folder message you posted seems weird.
Please provide more information.