Imported Database not in Cpanel - mysql

I imported a database in phpmyadmin directly without creating a database in cpanel. I am not able to view the database in cpanel, nor can I delete it. Even the script fails to connect to it since I didn't specify a user for that database. Any help?

If I understand your question right, it's impossible. I've tried to import a database in phpmyadmin (version 3.5.1) directly without creating a database and got this message: "#1046 - No database selected".
You are not able to do anything with database, because it just doesn't exist.

Related

Connecting to MySQL database on AWS server from PHPMyAdmin

I am trying to connect to a MySQL database that resides on an AWS server from within PHPMyAdmin, to be able to view its tables.
I have the connection strings (hostname, username, password), but I do not see where I would link or provide the AWS database parameters.
Ultimately what I would like to do with the tables is to use the data in my front-end userform that is created in MS Excel.
Here's what I am able to do successfully:
1. can create MySQL database (testdb)
2. can create a table (testtable) from PHPMyAdmin
3. Use the MySQL for Excel connection service to be able to connect to the testtable in the testdb and use the data in my Excel application.
The problem I am having is bringing or linking to the MySQL database on the AWS server to my testdb. I just want to be able to see a list of the AWS database tables in Phpmyadmin. Is that possible?
Yes, it is possible. You can edit config.inc.php file of phpmyadmin to add as many servers as you want
Here is the link with the guide
https://tecadmin.net/add-multiple-hosts-in-phpmyadmin/

moving a database from sqlServer to phpMyAdmin

i have a WordPress site and had created a database in my host within phpMyAdmin.
since SQL server is much more easier to use ratter than phpMyAdmin, I switched to SQL server and made another database with tables and records in it.
now i want to transfer my DB from SQL server to phpMyAdmin, beside my old database that i created before.
I tried export and import but i got a lot of errors!
I would be thankful if anyone can help

MySQL DB error in displaying table

I have a problem when I backup my database from old server to the new one. Both run Ubuntu. The difference is the old database is using phpmyadmin 1.6.3 and the new one is 5.7.21. I lost some tables but it appear in the sidebar. Can anyone describe to me what is going on with my db? Here is the screenshot.
to be clear, here is the screenshot of my old database phpmyadmin interface.
You may try stop and start the mysqld service.
If the error still exists then back up the database file and drop it then import again to a newly created database.
**commands may be OS specific
follow instructions from : MySQL Site

Make Mysql database that exists manageable with phpmyadmin

I have a Mysql database on my server. I can get into it via the command line, so it does exist. However, when I go into cpanel and open up phpmyadmin, it is not there.
What do you have to do to make an existing database manageable with phpmyadmin?
The database created using the root? if so you must set user permissions to cPanel in WHM.
If the database was directly created from MySQL server or somehow it is not showing in cPanel -> phpMyAdmin, you can use "Database Map Tool" from WHM to map the database to your cPanel user.

Restore .sql export to WordPress db from within WordPress?

I've been developing a client's site and have maintained .sql backups using Export of phpMyAdmin. Yesterday my client provided me with credentials for the destination server and asked if I could migrate the development site to the beta site.
I can copy the files, of course, and I have changed wp-config.php to point to the new database correctly. When I load the page initially a default WordPress installation is created.
Unfortunately, I was not provided cPanel or phpMyAdmin credentials.
Ideally, there would be a plugin or script that would drop all of the existing tables created by default and use my .sql export to recreate the tables and populate them with data.
Does anyone know if there is a way to import this .sql from within WordPress?
You can import it with mysql on the command line:
mysql -u someuser -p password <yoursqlfile.sql
Or you can open it in mysql workbench (download from mysql.com) and run it from there.
In case you cannot SSH to the server or access the database via workbench as Norbert suggested, you can try XCloner.
It would be better if you had some sort of direct access to the database, but I'm guessing if you do not have cpanel access you also do not have SSH access. It is also common for databases to be restricted to local access, so a remote connection via MySQL Workbench may not be an option.
If for whatever reason none of these solutions work, you can temporarily connect the site to a remote database that you have access to until you get the necessary credentials from the client.