I know this question has been asked here a number of times, and I went through all the answers I could find but nothing seems to work for me.
I recently downloaded PhpMyAdmin and MySQL. Everything works fine except when I log into phpMyAdmin as a root user, I get this error:
"The phpMyAdmin configuration storage is not completely configured, some extended features have been deactivated. Find out why.
When I click to find out why, I get this:
Configuration of pmadb... not OK
General relation features Disabled
Create a database named phpmyadmin and setup the phpMyAdmin configuration storage there.
The phpmyadmin database exists, however I do not know how to setup configuration storage there.
What I tried:
Uncommenting lines under /* User used to manipulate with storage / and / Storage database and tables */ in config.inc.php file - no luck.
Others also suggest creating a user 'pma'#'localhost' in create_tables.sql file but I cannot locate this file anywhere. I also created this user in the "user" table of "mysql" database, so it may do the same thing as creating it in create_tables.sql file.
Any suggestions will be greatly appreciated. Everything seems to be working fine, this error is just annoying. Thank you in advance!
Related
First ever Stack Overflow post, thanks for your time. Any constructive criticism on how to post better, please just let me know. I have done a search on my query and have found similar posts, but I was unable to use the information within them to resolve my problem.
I have created a mysql database using the terminal window in my Ubuntu system (which I am also new to, having been a lifelong windows user). I used the following code in the terminal window:
$ mysql -u root -p
Then once in mysql, I did the following
CREATE DATABASE securities_master;
USE securities_master;
I created a user and tables in the database using some other code, that doesn't seem relevant here, so I won't bother posting. However, I then decided I would like to take a look at the tables in the database, so I downloaded an SQLite browser. It was at this point that I realized I could not find my database file.
I tried to find the answer on previous stack overflow posts, and tried the suggestions of:
locate sqlite
locate .db
locate .sqlite
locate securities_master
But unfortunately, none of these showed the file I was looking for. The only place I can think of would be what is called the 'root' directory in my computer, but the Ubuntu file manager system won't let me view it because it says I don't have permissions. Is this where it might be?
Could someone shed some light on where I might be able to find this file/database? I know it is definitely there because if I try to CREATE it again, I get the message that it can't because it already exists.
Thanks again.
sqlite and mysql are two different databases. You can't use sqlite on a mysql database. sqlite is a single-file database, in which users just open the file and read and write to it, while mysql is a more traditional relational database system with a server and a client, where the server manages the database (which is generally in a directory of files), while the client just connects to the server.
Where the mysql database is located my depend on your system, but it's usually in /var/lib/mysql. You can look in /etc/mysql/my.cnf for the configuration file, which should have a datadir option that refers to where the actual data for the database is stored.
You can check my.ini file to see where the data folder is located.
Usually there is a folder {mysqlDirectory}/data
MySQL data storage:
Commands.frm
Commands.myd
Commands.myi
The *.frm files contain the table definitions. Your *.myi files are MyISAM index files. Your *.myd files contain the table data.
as mentioned in the answer before mine, mysql and sqlite are two different systems.
You mention you used the cmd line mysql to create the database and then wanted to view the tables. If you're simply trying to see which table are created, in the same command line you used to Create the database you can run show tables;
If you're after a GUI for this, we'd need a bit more context. Is this ubuntu system a remote server, or are you using the desktop version?
You say you're a long time windows user, If you're using windows locally, I personally like SQLWorkbench for accessing my remote mysql servers.
EDIT: I just re-read your post and realised you're using local ubuntu desktop so me mentioning remote was silly, my bad! However, SQLWorkbench does have a ubuntu version at https://dev.mysql.com/downloads/workbench/
I am by no means any bit of an expert and I am really hoping this did not just bite me! I have created a WP site on my computer locally thru WAMP. I was near completion and have a domain set up on GoDaddy that I wanted to transfer it to. This is a project that I am not always able to work on so sometimes I would forget my log in info for the phpMyAdmin. I recently did a tutorial that got me to reset my password which worked for accessing the files under the phpMyAdmin however I can no longer bring up my local copy of WP without getting this error - Error establishing a database connection. Not sure if when I changed my password if this caused an issue with how the local server was set up but I am at a loss after many hours of work.
I also unfortunately am unable to log into my phpMyAdmin and wouldn't even know where to begin. This is definitely over my head as far as technicality goes as I am probably not describing this the best way possible. Can anyone with suggestions please assist if you have had database issues on a local server thru WAMP and what is the best measure to ensure I have not lost all of my hard work?
Thank you in advance!
From what I got the issue is the local site . If so you need to go to your wp-config file in your word-press installation folder on your local machine. Edit the file using notepad. You should see a section with this part
/** MySQL database password */
define( 'DB_PASSWORD', 'password_here' );
Edit the password and your local install should work just fine.
I'm sure that there are a lot of people facing my problem; I had copied the data folder inside mysql on the hard disk, then format my computer, then I have pasted the data folder,
then all databases shows the number of tables, and when I make query show tables.
Its showing all tables inside database, but when I try to access the tables, it's showing table does not exist?
Please, I have a lot of projects, can any body help me?
Note that there was no password on the previous version and the user was root as now.
Please help.
I did not move any database file, but I had the same error message "No tables found in database" within PhpMyAdmin. But I could access the database by sql. I found out that it was caused by the browser. Using another browser or a private window helped. Did not try a restart or deleting cache so far.
If your phpMyAdmin no longer sees any tables in any of your local databases, that is because permissions change away from mysql.mysql on any database directory under /var/lib/mysql to, say, root.root (most probably).
You will have to change the owner from root.root to mysql.mysql, to do this, youâll need root access and putty. Key in this command:
chown -R mysql.mysql /var/lib/mysql/
Probably a duplicate: MySQL Table does not exist error, but it does exist
But moving files is not the way to save the database,best way is the export,import.
I inherited an old (version 1.4) Mediawiki installation. I'd like to update it, but have had a lot of trouble doing so.
I downloaded Mediawiki 1.19 and put it in a new directory. I put the old LocalSettings.php file in this new directory, altering only the $wgScriptPath variable to reflect the new directory name. I didn't alter the database name, user, or password.
When I try to run the update.php script, I get this:
DB connection error: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) (localhost).
I've googled this pretty extensively. It's a common enough error, but most of the solutions involve cases where MySQL wasn't running in the first place or where something about the socket needs to be changed at a global level (i.e., for the whole site). Neither of these cases can apply, since there is a lot of other MySQL stuff going on with the site that is working fine.
On the off chance that something was wrong with the user credentials, I tried creating a completely new user and adding that user to LocalSettings.php, but I still get the same error.
Any tips would be greatly appreciated.
It seems that my initial download of Mediawiki 1.19 was somehow corrupt or incomplete. I re-downloaded the software and everything worked fine.
I have followed the directions, created a control user and database, ran the create_tables.sql script (after I modified it with the proper DB name), used the setup script to create a config file and filled out all the fields on the "Edit Server -> Configuration Storage" page. I moved the generated config file into the top level PMA directory.
I can use PMA fine, but the Configuration Storage features aren't working. The foreign key fields aren't hyperlinking to their respective entities in different fields. I've checked the configuration tables (pma_*), and they're all empty except for pma_recent, which has two entries (login attempts or something?).
I should note that I built the DB before installing phpMyAdmin, so is there some script or something I have to run for it to scan the current tables and find the foreign keys/links?
Thanks!
I always had the same problem. I could never get the pma configuration database to work. SQL history neither.
Now phpMyAdmin has browser storage, which luckily works. Except it's nagging me on every refresh [or new tab] to load the configuration from the browser storage.
I just rely on the php config, and put everything in there.
Configurations of phpMyAdmin is in the file config.inc.php and you can take a look on this file config.sample.inc.php
This solved the problem for me $cfg['QueryHistoryDB'] = true;
Thanks to http://sourceforge.net/p/phpmyadmin/bugs/3998/