MySQL 5.6 installation database appears corrupt

Hello out there,
Having difficulty setting up MySQL 5.6 at the moment.

Here's my version of FreeBSD...
Code:
root@paranoia:/usr/local/etc/rc.d # uname -a
FreeBSD paranoia 10.2-RELEASE FreeBSD 10.2-RELEASE #0 r286666: Wed Aug 12 15:26:37 UTC 2015  root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64

After following the guide, I had problems after installing MySQL 5.6 and trying to set the root password with...
Code:
mysql> UPDATE mysql.USER SET Password=PASSWORD('password');
ERROR 1146 (42S02): Table 'mysql.USER' doesn't exist

Why won't it let me set the root password?

Thanking you in advance,
Jonathan.
 
Use a clean freebsdFreeBSD.

Then :
pkg update

Then :
pkg install mysql56-server
Y to confirm.

Then set user mysql:
Code:
mysql -u root

GRANT ALL PRIVILEGES ON *.* TO root@"%"
IDENTIFIED BY 'password' WITH GRANT OPTION;

FLUSH PRIVILEGES;
 
System trips up at....

Code:
mysql -u root

with...
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

Anymore help would be much appreciated.

Peace,
Jono.
 
As this is a new installation:
Code:
service mysql-server stop
rm -rf /var/lib/mysql/*
service mysql-server start
 
The above procedure fails when I reach....

Code:
rm -rf /var/lib/mysql/*
rm: No match.

and upon further investigation....
Code:
cd /var/lib/mysql
/var/lib/mysql: No such file or directory.

Any suggestions would be appreciated.

Peace,
Jonathan.
 
Oops, sorry, have been working with Linux too much lately. It should be /var/db/mysql/.
 
Thanks, so now I'm up to.....
mysql -u root
Code:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

Any ideas to get around this one?

Peace,
Jonathan.
 
Thanks, so now I'm up to.....
mysql -u root
Code:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

Any ideas to get around this one?

Peace,
Jonathan.
Whatssssssssssssss sooo hard?


Just use a CLEANNNNNNNN FreeBSD.
CLEAN.

And follow my steps below.
 
Thanks, so now I'm up to.....
mysql -u root
Code:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

Any ideas to get around this one?
Yes, MySQL isn't running. You need to start it.
 
I didn't have to start with a clean install at all, I managed to get it running by removing the package then the mysql user and reinstalling the package. But thanks anyway for the guidance.
 
Back
Top