MySQL Database connects, but says the name is incorrect - mysql

I am trying to install Pligg on my linux server, but am having difficulties. I am at the point where I need to point Pligg to a SQL server, and setup the server on using these instructions:
http://codelikezell.com/setting-up-rails-mysql-php-apache-and-git-on-ec2/
Pligg asks for:
Database Name
Database Username
Database Password
Database Server
Table Prefix
For Database Name, I use mysqld - which Putty confirms is running. I login as root and the password I assigned, set the Server to localhost.
I get this error, however: Error: Connected to the database, but the database name is incorrect.
How can it connect to the DB if the name is not correct? Am I doing something to point Pligg to the wrong DB?
Thanks!

Database name is not the same as process name(mysqld). Leave it blank or enter 'test' as db name; as far as I remember mysql always creates test database by default.

Related

failed to connect to Mysql at [AWS RDS ADDRESS] unable to connect to localhost

Our company has a database server on AWS which other the employees can connect to it with MySQL, but when I tried, I got this error message, how can I solve it?
I tried to reconfigure MySQL server but it didn't work. also I double checked username, password, url and port.
To connect to an RDS MySQL instance from MySQL WOrkbench on your dev machine, check a few things.
First, get the full endpoint to the database from AWS Management console.
Ensure the database is publicly accessable.
Also, make sure that you set up your inbound rules correctly.
Once you do these things, you can use MySQL Workbench to connect.
In the hostname field, make sure you put in the hostname you copied from AWS Management console. Do not put in extra information such as:
dbc:mysql://forxxxxxxxxxxxxx.us-west-2.rds.amazonaws.com
make sure it is:
forxxxxxxxxxxxxx.us-west-2.rds.amazonaws.com
THen specify the user name and password and MySQL Workbench will connect:

How to restore mysql users

I dropped accidentally all the users exist in my mysql DB and when I refresh the admin page I had this error :
Error
MySQL said:
1130 - Host 'localhost' is not allowed to connect to this MySQL server phpMyAdmin tried to connect to the MySQL server, and the
server rejected the connection. You should check the host, username
and password in your configuration and make sure that they correspond
to the information given by the administrator of the MySQL server.
How can I restore those users without losing my data ?
You just need to set an init file with the correct SQL to create/set a password for the root user, and then restart the server with the --init-file parameter.
Follow the directions here. Any SQL in the init file will be run, so you can create more users if you need to also.

How to access MySQL remotely through workbench

Hi I'm trying to create a new Connection to an MySQL database installed on a remote Windows server. However, due to server authentication problem, I cannot get the local mysql workbench connected to the remote database. And I could not find a place in workbench where I can provide my server authentication, i.e. username and password to access server. Does anyone know how to do this?
Thanks!
in the Home window of mysql workbench, near Mysql Connections there is a + button, click on it to Open the setup new Connection wizard, then you get to enter the server's parameters.
Hostname : your Windows Server's host name.
Port : Port on which the remote mysql server communicate.
Username : your Mysql server's Username.
Password : your Mysql server's Password.
Default Shcema : the database you want to connect to.
Hope this helps

Mysql Server Database showing only information_schema database

Initially i tried connecting the Mysql server database from another machine connected in LAN from my machine.
I successfully connected and i worked with that. After shutdowning the both machines.
Later again i tried to create new database i mean in the connected Mysql server database from my machine it worked. But in the Mysql server database machine showing only information_schema database alone. And also i unable to create new database in the connected Mysql server database machine.
I tried with GRANT & PRIVILEGES cmds but it showing access is denied .
For Your Information
Mysql in my PC and Mysql server database in another machine having the same user name and password.
This is the cause for the error.
What shall i do now ?

MySQL how to find host and user info?

how do I find out what my database hostname and user login is? I've tried localhost and root#localhost but no success.
Failed to connect to database host.domain.com:3306 user:root. Please
check the database settings you provided and verify that MySQL is up
and running.
Assuming that mysql is running and you have credentials that work, you can get all the host and user information from the mysql database once you are running mysql successfully - "select User,Host from mysql.user" for example.
But, it looks like your problem is that you can't log into mysql.
If you don't have a valid credentials to your own database, one has to wonder how you managed to lose them. That happens, however, and the way to reset those credentials is described in detail at http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html.