I am getting in a tangle trying to install mysql server 8 and wonder if someone could point me in the right direction please. I am basically new to installing it. I started by using MX package installer, which worked fine. Then it transpired that I need mysql 8 to be able to import a script with a particular collation. As far as I have been able to work out MariaDB does not support mysql 8.
So I installed mysql8 - I could not see it in the test repos - following these directions from 'superuser'- https://superuser.com/questions/1703669 ... -debian-11 and in addition:
Code: Select all
dave@mx:~$ sudo mysql_secure_installation
Code: Select all
dave@mx:~$ mysql --version
mysql Ver 8.0.31-cluster for Linux on x86_64 (MySQL Cluster Community Server - GPL)
Code: Select all
dave@mx:~$ mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
https://stackoverflow.com/questions/116 ... et-var-run
The line "socket = /var/run/mysqld/mysqld.sock" is in mysqld.cnf, in the folder /etc/mysql/mysql.conf.d
However, there is no mysqld folder at that location - or anywhere else that I can find.
Also,possibly related but I can't work out how:
Code: Select all
dave@mx:~$ mysqld
Command 'mysqld' is available in the following places
* /sbin/mysqld
* /usr/sbin/mysqld
The command could not be located because '/usr/sbin:/sbin' is not included in the PATH environment variable.
This is most likely caused by the lack of administrative privileges associated with your user account.
mysqld: command not found
Many thanks for any help, including ripping it up and doing it differently.
system info:
Operating System: Debian GNU/Linux 11
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2
Kernel Version: 5.10.0-20-amd64
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-4710HQ CPU @ 2.50GHz
Memory: 15.6 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 4600