Quantcast
Channel: MySQL Forums - Install & Repo
Viewing all articles
Browse latest Browse all 7239

Missing mysql database (2 replies)

$
0
0
Hi all,
I have a problem with my MySQL installation on Red Hat Enterprise Linux 5. Well, I usually used MySQL on Windows installed as a package of Xampp or install it using Ubuntu's APT (so, technically I don't know much about installing MySQL on RedHat).

Here is what I do previously:
1. I downloaded Linux - Generic 2.6 (x86, 32-bit), RPM Package
MySQL Server and Linux - Generic 2.6 (x86, 32-bit), RPM Package
Client Utilities.

2. I install both of them using rpm -ivh MySQL-server-5.5.17-1.linux2.6.i386.rpm and rpm -ivh MySQL-client-5.5.17-1.linux2.6.i386.rpm

3. After the installation, there's a message like these:

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:

/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h dl01vmnecmq.aen.axisworld.co.id password 'new-password'

I do these commands after starting. And it's likely no problem until this step.

4. I try to use mysql console:

mysql -h localhost -u root

But it is said Permission denied for user root, so I use

mysql -h dl01vmnecmq.aen.axisworld.co.id -u rootdl01vmnecmq.aen.axisworld.co.id

I succeed to log into mysql console (without password prompt).

5. But when I try to check what databases available using this command:

mysql> SHOW DATABASES;

It only shows:

+--------------------+
| Database |
+--------------------+
| information_schema |
| test |
+--------------------+
2 rows in set (0.00 sec)

I expect there will be mysql database.

6. I still assume it's not showing. So I run this command:

mysql> CREATE DATABASE liferay;
ERROR 1044 (42000): Access denied for user ''@'dl01vmnecmq.aen.axisworld.co.id' to database 'liferay'

That's the case. Would anyone willing to explain to me what's happen to my installation?

How to resolve this issue? I've tried to uninstall MySQL using rpm -e command and re install the same package (just in case mysql database deleted accidentally), but still this problem occures.

Thanks in advance.

Viewing all articles
Browse latest Browse all 7239

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>