Recently, the left-pane DB preview in PHPMyAdmin lost the Functions folder. Already struggling the entire day to search a solution, but I cannot find anything similar to this problem. Together with this problem, I notice that when I hit the Structure view of a table it doesnt load anymore the table structure, but via MySQL command line though I can see everything.
Following various other topics on other phpMyAdmin left-pane view problems, I have verified that my user has ALL privileges.
Restarting MySQL (MariaDB actually) causes no change in the above results
I expect as so far the left-pane to show me the Functions folder as well as showing me the tables structure
I have just found the solution after 1 day of searches: this one worked perfectly MySQL Error 1 (HY000) Trouble creating file Errcode 2
Related
I sort of have a heart attack of a problem. I had a non-root utility user in mysql that used to be able to see all the databases, tables, etc. on the mysql instance. The user was also able to insert records, delete records, create tables, etc. too. This user is used by scripts to edit records, or view the data as someone who's not root via phpmyadmin.
I don't know how Django fits into this or if it was even the cause but a contractor needed access to the db to work on their project we asked them to work on. They said they were using Django and needed to create some auth tables in the database (auth_group, auth_user, auth_user_groups, etc.)
However, after they added their tables for Django, that utility user can't see anything except the "information_schema" database.
Luckily, I checked using the root user in mysql and can see the databases but somehow, I still cant see the databases with the non-root user. I don't see anything that jumps out at me permissions-wise in the "user" table in mysql so I'm not sure how to fix this problem. I want to see what commands the contractor ran to get us into this situation to tell them not to do this again.
I was going to check the .mysql_history file in the unix root user directory but the funny thing is the file is dated from 3 weeks ago so it doesn't look like this will yield any info on what was run.
So, back to my original question, where can I see a history of mysql commands that were run on mysql so I can figure out what happened or what was run to get us into this funny situation?
Hey guy i was working on my app but suddenly i got an error says table does not exist in engine.
When i went to see in my database i found out that all my tables are not working for w/e reason but as you can see (in the picture below) it says it does exist, i already checked if i have ibdata1 under C:/xampp/mysql/data/ and i found it.
Please if there is any solution i can do because i have like 10 tables i cant just re-create them, it's to much work...
The error is
table does not exist in engine
I am trying to drop one of my databases in mySQL, but I keep getting error 2013: lost connection (this occurs with other queries in this database as well). However, any other database works fine; I can perform queries and delete databases and tables easily.
I've tried googling it, but everything I've seen has essentially said that this lost connection is because of a large or complicated query.
My code is just
DROP DATABASE employees;
However, when I expand that database, it also says Tables/Views/Stored Procedures/Functions cannot be fetched, if that helps (once again, my other databases don't have this problem).
I created this database in Jupyter notebooks using mySQL python connector, and the others I created directly in mySQL, but that is the only real differentiating factor between them.
Ok, I figured it out. Turns out if you're running the code in Jupyter Notebooks and try to perform any actions before closing the cursor, it won't run. (I forgot to run the cell with mycursor.close()). Thanks!
Ok, I've working with my database, and I've got 2 tables and I'm trying to create a foreign link between the two. Apparently this means I need a button called Relation View that is only visible after you set both tables to InnoDB under Operations, which I have done. But Relation View failed to show up, either at the top under the "Structure" tab, or at the bottom next to the "Print" icon where it's supposed to be. So I went here (http://www.w3expert.com/2008/03/how-to-enable-view-feature-in.html) and followed the directions to install the phpmyadmin database, which should have enabled the Relation View, but it didn't. So I'm lost. Am i missing something? Is there another way to get this to work?
To be clear, I'm working through phpMyAdmin through my MAMP server.
Edit - I've also followed the instructions on this website (http://newvibes.com/blog/enabling-relation-view-in-phpmyadmin-mamp/) and edited the server configurations in the mentioned file.
So to recap -
I've created the phpmyadmin database as per the instructions in the 1st link. Then I changed the configurations of the file mention in the 2nd link. Then I closed my phpMyAdmin and restarted my MAMP server. Reopened everything, and I still can't access my Relation View.
2nd Edit - I've been messing with phpMyAdmin, and I've noticed that "Relation View" actually pops up under the database that I imported. But it doesn't show up under any of the other databases. Am I supposed to create my databases in/under the database I imported? If so, how do I do that . . .?
Are you using MyISAM storage engine? phpMyAdmin only shows relational view with InnoDB.
Click on a table, go to Operations at the top and change Storage Engine to InnoDB. I think you can only do this one table at a time
InnoDSB has a lot of overheads for larger databases (so I understand) but should be fine for small/medium stuff.
I have deployed my play! application on http://www.playapps.net/.
All seemed to start OK but for some reason my queries are not working.
I have imported my script from local to their server and even I have the error:
Access denied for user 'play'#'localhost' to database 'da' (but it created my tables into their play schema there and imported my data).
Can this error be an issue for my not displaying data from DB?
Because I see no error in the logs.
Is here anybody who deployed app on this hosting solution and had this error also?
UPDATE: I've solved the above error, so now the import of my tables is done directly in play database. I log in with ssh user, open mysql console and I can see the tables.
But still, the query from my site is returning empty results. And locally it works perfectly.
Do I need any other configuration apart of this?
%playapps.application.mode=prod
%playapps.application.log=INFO
%playapps.db=mysql:play:play#play
%playapps.jpa.ddl=update
Very ugly situation.
My tables were not with capital letters. Play was looking for "Magazine" table (it created it but was empty) and I had also "magazine" table populated.
Maybe it will be useful for someone.
Ps: what was quite strange was that locally, on windows it worked.