Why mysql lauch on start

Rdeeluxe :

I do my best for explain my problem !

I'm on linux Ubuntu and i use xampp, if i start xampp = Apache Web : running, ProFTPD : running, Mysql: Stopped.

The code error for my sql is :

2020-02-28 15:19:42 0 [ERROR] Can't start server: Bind on TCP/IP port. Got error: 98: Address already in use 2020-02-28 15:19:42 0 [ERROR] Do you already have another mysqld server running on port: 3306 ? 2020-02-28 15:19:42 0 [ERROR] Aborting

If i go http://localhost/phpmyadmin/ with 'root' and 'root' is work and i can see my database on the left.

If i watch my netstat : tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 1111/mysqld

So i try to stop server with "sudo service mysql stop", now on xampp i restart all and = xampp Apache Web : running, ProFTPD : running, Mysql: running.

Now, go to localhost phpmyadmin but "root" "root" not working and "root" "" work fine but i watch on left and all DB gone.

If i restart my pc and launch xampp = mysql:Stopped and "root" "root" works and on left i can see my db.

I don't understand the problem if someone explain me why mysql running on start and on xampp is stopped ? Why if start, all db gone and the password is not the same ?

(Sorry i don't have a good english)

EDIT :

Thanks i think is a good way !

But i have a lot of problem all time. I export my Db i got a " mydatabase.sql"

So now i go on xampp mysql and i'm connect but i see this message (pop-up)

But i'm on adminphp so i go on import and is say me that

I have develop a website on php but now i follow udemy course for laravel and mysql cause me a lot of trouble i do nothing all this day :(

RickWeb :

You have two instances / version of MySQL running, looks like you have solved that one,

So you now backing up and moving across your databases.

From your screen shots your getting a few errors, but I can see you you importing your .sql files directly on the server root.

If you your .sql file does not contain a using statement phpmyadmin will not know which database to put the data into. Add the following line to it or move into the database and retry the import.

USE databasename; 

Or if the databases do not exist you can use the following

CREATE DATABASE databasename;
USE databasename;

substituting databasename for the name of your database.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=16492&siteId=1