MySql57 Windows Service won't start - mysql

I had installed MySQL 5.7 on my local machine and was connecting using host 127.0.0.1 and port 3306. After I restarted my machine I am unable to connect to the server. When I try to start the Windows service MySQL57 it does not start. The error message in the event viewer is Fatal error: mysql.user table is damaged. Please run mysql_upgrade. When I try to run this MySQL_upgrade through command promt it gives the error:
Got error: 2003: Can't connect to MySQL server on localhost<10061> while connecting to the MySQL server.
When I do a netstat -an, I can't see the port 3306 as available or being used by any other process.
I have tried uninstalling and installing the Server component but I get the same error through the MySQL Installer wizard.

Related

Secure MySQL 8 installation on Ubuntu 20.04 Problem

I`m trying to install and configure mysql and phpmyadmin, but after installation mysql-server, when I try to use command mysql_secure_installation terminal ask me to input root password. After entering, it shows ERROR:
Securing the MySQL server deployment.
Enter password for user root:
Error: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
I tried install mysql with info from this page https://kifarunix.com/install-mysql-8-on-ubuntu-20-04/
Edit:
https://www.hivelocity.net/kb/what-to-do-if-mysql-sock-file-is-missing/ That didn`t help

MySQL on MacOS installed by brew not working after shutdown

I install on my MacOS Sierra long time ago MySQL using brew install mysql and everytime I turn off and on my computer mysql started automagicaly what was great. But unfortunately yesterday I needed to temporarily shutdown MySQL - so I found on internet some command (but it was not brew services stop mysql) and after that when I reboot my computer MySQL not started (I was unable to connect by Sequel Pro GUI MySQL client). So I try to run it by:
brew services start mysql
==> Successfully started `mysql` (label: homebrew.mxcl.mysql)
But I was still unable to connect :(
I try to connect by following command (to change root password) and get hint:
Mac-mini-Kamil:local Kamil$ mysqladmin -u root password 'xxxx'
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!
I type this 'hint' to internet and find out that I need run the following command:
mysqld
And that works :) (I was able to connect to my db)

Connect to SQL server with custom port while executing installer

I have InstallShield 2013 basic MSI project. During installer execution I need to connect to MySQL Server which is running on 3310 port. Default port is 3306 and installation runs successfully, but when I try to connect to server with different port - installer cannot connect to MySQL server.
I tried to set custom port like described here
ServerName,3310
But it didn't work for me. I also tried to connect by IP of server and port delimited with ":" but it also had no effect.
When I try to connect to server by typing hostname I get this error: "Can't connect to MySQL server on 'hostname'"
When I try to connect to MySQL server by typing hostname,port I get the following error: "Unknown MySQL server host 'hostname,port'"
Can anyone tell me what I am doing wrong or what I need to do to connect to MySQL server with custom port?

How to install mysql server and xampp server both in same operating system

In my machine there has Xampp server. Recently I install MySQL server edition on that machine. It occurs an error. Then change port and socket in config.inc.php page. Again it shows an error. to solve uninstall both Xampp server and MySQL. Again try to run both Xampp and MySQL both. First install Xampp then install mySQL work bench. Now it shows an errors [ #1142 - SELECT command denied to user ''#'localhost' for table 'pma_recent' and (SELECT tables
FROM phpmyadmin.pma_recent WHERE username = 'root' )].
Please help me to solve this problem. and tell me the procedure without conflict database,how to install both xampp server and mysql server.
You can install xampp in port 3306 and mySql in port 3307.

PHPMyAdmin cannot connect to MySQL

I installed the lampp sever on my local in linux OS,
but its giving error while opening phpmyadmin.
#2002 - The server is not responding (or the local MySQL server's socket is not correctly configured)
See services mysqld enabled or disabled.
check if MySQL is running with this command
mysqladmin -u root -p status
if it is running it will ask for your password otherwise it will spit out an error