MySQL socket error!
All,
Keep getting the following errors, from MySQL via my server: Code:
mysqli_connect(): (HY000/2002): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Bash Script root_reset.sh Code:
#! /bin/bash Code:
FLUSH PRIVILEGES; Cheers! TBNK |
Output of:
Code:
ps auxw | grep mysql |
Quote:
No such file as /var/run/mysqld/mysqld.sock or /var/run/mysqld/mysql.sock. Matter of fact absolutely no .sock file at all on the system. I'm on Kubuntu 14.04 Cheers! TBNK |
Script
All,
I have even run the following script in both the install and purge modes, but it does not fix my problem and version remains at 5.5.53. Code:
#! /bin/bash Cheers! TBNK |
Weird
All,
Im at a weird place with this. I have never been able to actually purge 5.5.53, and so that is what I always get when I run: Code:
mysql --version Code:
rm -rf /var/lib/mysql Code:
rm -rf /etc/mysql The weird part is, though I never was successful with the upgrade from 5.5.53 to 5.7; I can now login to mysql from the cmd line for both root and $USER and permissions etc are there, but never can login via phpmyadmin anymore. That would suggest issues in/with the config.inc.php config file for phpmyadmin, but can not see any issues there, when editing. Anyway your comments on these thoughts appreciated. Also I notice all the db files are still in the /var/lib/mysql directory so that also indicates that the "rm" command for that is not working from the script. Wonder if something in those db files, especially the "mysql" database are what keeps making it think its on 5.5.53? Thanks & Cheers! TBNK |
Quote:
Check out the section on .frm files and the offset 0x33. This is the mysql version the table was built with. You can view it in your files with hexdump if you have it installed. |
Repository needed
All,
The Muon Software Center, as most know is totally useless, so out of frustration installed "Synaptic Package Manager"! Looking in there, the latest available MySQL version is 5.6, so rather obvious why my upgrade is failing. So knew I needed either new repository or .deb file for this. Found a HOWTO at: Modified my script to: Code:
#! /bin/bash Cheers! TBNK |
Hi,,
Even am also facing the same issue,, for that i use "fuser -k -n tcp 3306" Use the command and Clear port Issue,, Surely the service ll get restart |
All,
After trapping the install output an looking at it the following lines in my script: Code:
wget http://dev.mysql.com/get/mysql-apt-config_0.8.0-1_all.deb; Cheers! TBNK |
Another
All,
Found another HOWTO and changed my code to: Code:
#! /bin/bash Code:
apt-get -y -q install mysql-server-5.7 mysql-client mysql-common mysql-workbench; Quote:
Still looking for that. If you know it or have it please share! Cheers! TBNK |
DPKG Fails
All,
Additionally the 5.7 resource that the dpkg install is looking for, no longer exists, so the dpkg screen opens, but hangs, because the resource can not be found. My Magento says I need 5.7, so really have to get this installed. However, I'm running the upgrade from 5.5.53 to 5.6, through synaptic package manager, but even that is erroring, so not sure what to do next! Cheers! TBNK |
Works on new install
All,
OK! Had to do new Kubuntu 14.04 LTS install on my laptop, due to it dying all the time. See: http://www.linuxquestions.org/questi...ts-4175596797/ When this come to the mysql install, the dpkg, though totally written wrong (keeps you in a loop, till you figure out what it's looking for), infact does have and installs MySQL 5.7, from the native ubuntu repositories. I called it with the code: Code:
echo " "; |
All times are GMT -5. The time now is 03:39 PM. |