Phpmyadmin not working - mysql

I have trouble during running Phpmyadmin.
Error is
2002 - No connection could be made because the target machine actively refused it. The server is not responding (or the local server's socket is not correctly configured).
I am using,
wampserver 2.2
PHP version 5.3.13
MySql Version 5.5.24
Thank you in advanced

Wampserver have a very active forum which has helped solve similar issues arising from a multitude of causes. Check out http://forum.wampserver.com/list.php?2
Listing the following is helpful to get started:
1. OS Version
2 WampServer version
3. Apache version
4. MySQL version
5. PHP version

Related

MySQL workbench says bad handshake

I tried connecting the database from the server, but MySQL Workbench says that the connection cannot be made and declaring it as Bad Handshake. Can someone help me with this? But if I use the same user id and password and DB connections, it works on the other computer systems. Can someone solve this issue?
The authentication has changed from mysql V8, you must use a compatible client and server.
BTW it's a bug : https://bugs.mysql.com/bug.php?id=91828
Here is a workaround without uninstalling the new workbench.
The most probable case is having an old server with a new workbench:
get the server version
From a SQL cli tool:
SHOW VARIABLES LIKE "%version%";
or from a cli connected on the server:
$ mysql -v
It should show a version < 8.0, in my case 5.1.73
Get the mysqlWorkbench for a version <8.0:
You cannot install the msi if you already have a workbench V8.0, so you have to choose a portable installation form a zip file here:
https://dev.mysql.com/downloads/workbench/6.1.html
Select the version 6.2.5 (last before v8.0) zip version
Unzip
Close the workbench v.8 (it lock any other workbench launch)
Launch the V6.2.3 version of workbench, it should works.
This is probably because of a mismatch in the versions of MySQL servers.
Check the version of the MySQL server you are trying to connect to, and the version you have installed on the computer you are using, they have to be the same.
The reason of this warning is version problem. If you have installed mysql server version <= 5.1 and your remote server mysql version is greater than that you will face this problem. I recommend you to install 5.7 or greater in both your local and remote server. This problem will be fixed.
Fortunately there is an easy way around this. Use the old MYSQL ADMINISTRATOR tool as shown below. In my case I was trying to open a MySQL 5.1 database for a clients WordPress installation with MySQL Workbench 8 and that did not work out :).
ALl credits goes to https://www.urtech.ca/2019/01/solved-bad-handshake-mysql-workbench-failed-to-connect-to-sql/
Follow this link for the details
https://www.urtech.ca/2019/01/solved-bad-handshake-mysql-workbench-failed-to-connect-to-sql/

Connect xampp localhost from Mariadb to MySQL database

I downloaded the ff: Mysql Workbench, Mysql Community Server and Xampp (latest).
I found out that recent xampp version is no longer using MySQL as database server instead it uses MariaDB. Apparently, MySQL workbench is not compatible with MariaDB.
There was a suggestion in previous forum to turnoff MariaDB and turn on MySQL Server on and it will automatically connect to xampp localhost. Which it did not, rather it shows an error message
Please advise what files needs to be configured to connect my xampp localhost and my manage server control user to mysql database server in OS X (macbook pro).
I just got an answer from XAMPP developers that they build and test the XAMPP installers with bundled components and try to configure it to use external services will be error prone.

HeidiSql connect to older version of mySQL

I recently installed WAMP server, which apparently upgraded my version of MySQL from 5.7 or something (I don't know). Now, when I open Heidi SQL to access my other databases not related to WAMP, they are no longer there, probably because Heidi is now connecting to a more recent version of MySQL?
I see my old data in C:\ProgramData\MySQL\MySQL Server 5.7\Data.
How do I reconfigure Heidi to read this folder?
Edited because it wasn't MYSQL 6.0, but Heidi 6.0. I don't know what WAMP did to mySQL to be honest.
Fixed it. I had to change the path in my.ini.

MySQL Workbench incompatible/nonstandard server

I am new to using MySQL and I needed to download it for school, however, I keep getting this error message (picture below). I am using xampp and connecting using the username root. the port also matches what it is telling me. It will let me proceed but a lot of the features are missing. Any help at all would be appreciated.
Incompatible/nonstandard server version or connection protocol
detected (10.0.10).
A connection to this database can be established but some MySQL
Workbench features may not work properly since the database is not
fully compatible with the supported versions of MySQL.
MySQL Workbench is developed and tested for MySQL Server versions 5.1,
5.5, 5.6 and 5.7
As I can see, You are using latest XAMPP.
All you need to do is, after opening MySQL Workbench, and instead of setting up a new connection, Press CTRL+R or click on DATABASE tab in the top menu. Select Reverse Engineer and provide necessary information. You are good to go now.
The MySql workbench wont crash or show any compatibility issue now.
The current version of XAMPP uses MariaDB instead of MySQL.
Because MySQL Workbench is designed to work with MySQL and not with the very similar drop in replacement MariaDB, you are gonna have problems ...
So, if you want to use MySQL Workbench with XAMPP then a solution would be to try installing the last version of XAMPP that uses MySQL. That version is probably 1.8.3 from (August of 2014?). You can download it here:
XAMPP Sourceforge old versions
If you are using the latest XAMPP that uses MariaDB, in that case in your MySQL Workbench don't use 'Connect to Database' instead use 'Reverse Engineer' and provide the necessary credentials. That's all, No hassle.
I encounter the same message followed by a crash of MySQL Workbench, with version 6.3.7 (build 1199).
I didn't find a solution, but here is a work-around:
Once you press the button Continue anyway, just open a database use toto, and then wait a bit (a minute is enough in my case), and then you can call a query without a crash. I found this trick here.
I experimented the same with WAMP 3.2.0.
MariaDB was configured to listen to port 3306 (the usal MySQL port) and MySQL 8 was listening on port 3308. If you are in this case, don't be fooled by the fact you have 2 DBs.
To solve this, you have to choose the DB you want. I wanted MySQL and I just ask MySQLWorkBench to open a connection on port 3308 to MySQL.
You can ditch MySQL Workbench, and use the browser made for the MariaDB, they have a free version here: https://www.upscene.com/downloads/dbw
It's limited in its abilities, but I had no troubles connecting and browsing.
I had the similar problem because i was using Denwer at the same time.
To solve the problem:
Stop Denwer
Restart MySQL server
Profit! Now you can open your database in the Workbench
The idea is that denwer was starting its local server which didnt allow MySQL to start normally.
If you want to use denwer at the same time wth MySQL you can just start it after MySQL (Point 4).
In my case I already had MySql server and workbench installed and setup prior to my XAMPP installation. I wanted to continue with my existing setup.
I also installed MySql server with my XAMPP. I started mysql inside XAMPP and when I connected to MySql Workbench, I encountered the same error. Because Workbench was trying to connect with the server which was installed with XAMPP, apparently this was incompatible.
So I stopped mysql in XAMPP and started started mysql server manually(the previous setup and installed server).
Refer this to know how to start mysql manually in windows.
You can also config XAMPP to use your existing SqlServer.
So I had the same problem. For me none of the methods worked, but then I found out that my MariaDB was occupying the same port, so I uninstalled it and that solved the problem.
i had same issue, i changed the mysql server port from 3306 to 3308 in XAMPP config file.
[mysqld]
port=3308

Connect MySQL 3.23 hosted on Linux Server via MySQL Workbench 5.2 on Windows

I've a mysql database with version 3.23 installed on linux server.
When i try to use the database using sql yog, it will connect.But when i try to connect to the database using mysql work bench installed on windows xp, i will get an error.
Screen shots are below :
When i tried to connect mysql with the help of SQL YOG,
When i try to connect mysql with MySQL workbench
I used Putty to check whether SSH port 22 is listening or not, it is listening.. I can see the terminal.. an i checked host of root login...
I tried connecting with the help of SSH, i didnt get the solution... I am not able to track where i am getting wrong...
Can any one help me out???
Thanks in advance...
Regards,
Anoop Pete
Your server version is just not supported:
MySQL Workbench fully supports MySQL Server versions 5.1 and above. It
is also compatible with MySQL Server 5.0, but not every feature of 5.0
may be supported. It does not support MySQL Server versions 4.x.
Sadly, MySQL 3.23 is almost 12 years old.