ServerForum.org - The Professional IT Community

Full Version: Web server on Debian 9 - Database error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

Unfortunately, I do not quite know if I'm right here: /

Today I installed mariadb, Apache, php, phpmyadmin etc. on my Vserver.

However, when installing (+ reinstalling) mariadb did not ask me for a password. If I want to log in to Mariadb with the root user the following error message appears:

Quote:ERROR 2002 (HY000): Can not connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")


phpmyadmin outputs the same error in German ...

can someone help me there?

Thanks in advanced
Hello, 

you can try to set higher or lower settings on 'dpkg-reconfigure debconf'
I have set to medium. Error continues without changes. mariadb client & server reinstalled. Nothing
I available save all data.

Uninstall with --purge

Quote:/ Etc / mysql

/ Var / lib / mysql

delete if anything remains of it after the purgen.
Is the MySQL service running? Do you have already check the MySQL logs?

Node: In the new versions of Debian MySQL installations, the system root is automatically enabled for MySQL access.
Quote:sudo aptitude purge mariadb-server

sudo aptitude purge mariadb client

Folder not available

Quote:apt-get install mariadb-client mariadb-server
again no configuration request: /


Quote:Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
 mariadb-client mariadb-server
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/52.2 kB of archives.
After this operation, 127 kB of additional disk space will be used.
Selecting previously unselected package mariadb-client.
(Reading database ... 47959 files and directories currently installed.)
Preparing to unpack .../mariadb-client_10.1.26-0+deb9u1_all.deb ...
Unpacking mariadb-client (10.1.26-0+deb9u1) ...
Selecting previously unselected package mariadb-server.
Preparing to unpack .../mariadb-server_10.1.26-0+deb9u1_all.deb ...
Unpacking mariadb-server (10.1.26-0+deb9u1) ...
Setting up mariadb-client (10.1.26-0+deb9u1) ...
Setting up mariadb-server (10.1.26-0+deb9u1) ..