error Table 'database.table' doesn't exist in engine in xampp - mysql

today when I ran xampp, no matter how hard I tried, I could not launch mysql. I did a lot of chatting on the internet and was able to run mysql, but many of my tables have problems and when I open the Table error, it shows 'DbName.TableName' does not exist in the engine. I did a lot of research and found that a number of people have encountered this problem. No solution seems to have been discovered. I tried to create a sql file from it and import it again, but the file had problems. I have valuable information in these tables, please help.
Of course, this error is sometimes shown:
Error in processing request
Error text: error (rejected)
It seems that the connection to server has been lost. Please check your network connectivity and server status.

Related

Where Does MySQL Save Error Logs on Windows?

I am having an issue using MySQL via Python mysql.connector library.
The error is very vague, it is:
2013 (HY000): Lost connection to MySQL server during query
There is no further information from the library on the stack, this seems to be all I've got. I have looked at other StackOverflow questions and answers on this error, and the common reasons I've seen for this error do not match my case. I am not trying to run long queries or SELECT huge datasets. I am running fairly small queries that only INSERT data.
I have tried my best looking through the logs in C:\ProgramData\MySQL\MySQL Server 8.0\Data and I also ran mysqld.exe with the --log-warnings=2 argument and checked the logs it produced. Nothing.
I am looking to hopefully review some log file while can provide me with further details on why this might be happening. I am using MySQL on Windows Server 2019 Standard. Where could I find such a file, or any further details on the error?
It's located on this path: C:\ProgramData\MySQL\MySQL Server 8.0\data
and search for these files: ComputerName.log for general log and ComputerName.err for error log

Why am I getting MySQL 2003 error: Connection refused error?

I know that this is likely not the right place to ask this question but I am at a loss as to where else to go. I signed up on remotemysql.com to create a (free) database. The data that I store in there means a lot to me, and in the last day or so, I am no longer able to connect to the server (neither from MySQL Workbench nor a python application that wrote data to it). The error I get is a 2003 error: connection refused
I haven't changed my credentials at all and have not violated any of the terms and conditions. Has anybody ever had this issue before? Or does anybody know how to get in touch with the maintainers of remotemysql to help troubleshoot?
Thanks so much for the help.
For anyone who is looking at this thread, my DB instance has been restored. Not sure what happened and will probably never find out, but I guess this comes with the territory.

Flask Security Too Mysql connection problem

I'm using Flask Security Too (https://flask-security-too.readthedocs.io/en/stable/index.html) to authenticate users on a test server. I followed the instructions in the documentations to get it up and running. It all works perfect, however for some reason the application is losing the connection to the MySQL server and starts returning an Internal Server Error. In Sentry I see the following error message:
(sqlalchemy.exc.InvalidRequestError) Can't reconnect until invalid transaction is rolled back
[SQL: SELECT anon_1.user_id AS anon_1_user_id, anon_1.user_email AS anon_1_user_email, anon_1.user_first_name AS anon_1_user_first_name, anon_1.user_last_name AS anon_1_user_last_name, anon_1.user_password AS anon_1_user_password, anon_1.user_last_login_at AS anon_1_user_last_login_at, anon_1.user_current_login_at AS anon_1_user_current_login_at, anon_1.user_last_login_ip AS anon_1_user_last_login_ip, anon_1.use...
This error usually appears when the site has not been accessed for several hours during night. Restarting the Flask app solves the problem.
I tried changing the SqlAlchemy options, without success. Since I'm using a MySQL database on a dedicated server I also tried using a local MySQL database, I'm having the same issue here.
I would like to solve this issue before spending more time on integrating this into my website.
Does anyone know what can cause this problem?
I have seen this (and there have been bugs) when using psycopg2 - where a PRIOR error (such as select on a column with an incompatible type - causes the connection to permanently be unusable. From my testing - there wasn't an obvious way to even know this had happened until the query that throws this error - since it was a coding error - I fixed a few bugs in that area. Note that was with psycopg2 - which I don't think you are using.
I would look at logs or turn on complete mysql query logging to look at what might be querying it during the evening.
Another thought - which I don't think would cause THIS error - is that many DBs drop connections after some period of time out. Make sure you are using Flask-SQLAlchemy 2.4.0 or greater and put in the config:
app.config["SQLALCHEMY_ENGINE_OPTIONS"] = {"pool_pre_ping": True}
which will make sure the connection is valid PRIOR to returning the connection to be used.

How to resolve blank errors for Xampp phpMyAdmin and MySQL

Several problems with phpmyAdmin running on Windows 7 in Xampp.
Creating a new database or editing data within a table, creates a network error message, with the response code being:
{"reload_flag":"1","success":false,"error":""}
Same response code when trying to load the second page of tables, the first page is just loaded again.
When changing a field in the database a blank notification popup is shown:
Updating a field
Initially MySQL table crashed errors were logged in the event viewer. The error was the 'MySQL table has crashed' and the tables in question were: procs_priv, tables_priv, columns_priv, and db. these errors are no longer being logged, yet we're having the same issues as before.
I've tried uninstalling and reinstalling Xampp, re importing the database and then repairing all tables. Non of this had any effect so far.
reload_flag is returned in auth() function. It looks like I solved this error by clearing cookies and/or switching between different auth_type(http, cookie, config) in config.inc.php file

Same query times out - Lost connection to MySQL server during query

I know this question has been asked on here before, but it seems like I've tried everything suggested in this answer and this answer, and still no luck. I'm trying to use MySQL Workbench 6.3 on a Windows 10 client, connecting to a Linux MySQL server hosted by GoDaddy/cPanel.
I can connect to the MySQL server with no problems, and usually I have time to run a query or two. Then, within a minute of inactivity between Workbench and the server, I'll run into Error 2013: Lost connection to MySQL server during query. This even happens when running the exact same query, back to back about a minute apart, as shown here (even when the original query is quick; only 0.03 seconds to run):
The same problem persists when I run select sleep(60) immediately upon connecting to the MySQL Server; the connection is usually lost between 30-40 seconds into the execution of the query:
I've checked the MySQL docs, but with no luck. I don't think the problem can be related to packet size, as others have suggested (since the same query will work and then fail later), and my Workbench timeout settings look okay:
Anyone have any idea? The only other thing I can think of is maybe the wait_timeout variable listed in the MySQL docs needs to be increased too, but I guess that would be somewhere on the server side (some have mention my.ini) and I can't find where any MySQL Server files live in the cPanel hosting admin interface. There's a MySQL online client provided through cPanel (phpMyAdmin I think), but it's not nearly as robust and is becoming cumbersome to use. Any help would be appreciated!
I was having the same problem, using MySQL Workbench 6.3.6 on Win10 to connect to a MySQL server on a shared hosting system (Arvixe).
In addition to to the problem described by the OP (lost connection to server), I was also getting an error when attempting to import data from a prior export (similar to what is described here):
Unhandled exception: Error querying security information: Error executing 'SELECT * FROM mysql.user WHERE user = '[username]' and Host = '[host]' ORDER BY User, Host' SELECT command denied to user '[username]'#'[host]' for table 'user' SQL Error: 1142
Apparently, a bug was introduced in MySQL Workbench 6.3.5 (bug report). From the bug report:
It appears the problem arise if connecting with an user with no privileges on the mysql schema.
In other words: users connecting to a shared hosting system.
The proposed solution is to uninstall MySQL Workbench 6.3.6, and install 6.3.4 instead. (6.3.4 can be found in the archives). This solution worked for me.