Moved mysql database but no joy - mysql

it started out with a mysqldump not making a good file so importing to another server would bomb. The last line of the sql file has this text in it:
mysqldump: Couldn't execute 'show events': Cannot proceed because system tables used by Event Scheduler were found damaged at server start (1577)
I then searched on this site for some other options and found the option of jsut grabbing the folder that contains the database and moving it to the other server. I tried that but then i get:
SQL show index from archived_import_log failed : Table 'cgaxf_800080.archived_import_log' doesn't exist
Now i am at a loss..any ideas?

Related

Error creating new User in MySQL workbench

I am getting an error in my SQL workbench when I create a user in my db.
I was given a schema to upload to my db I imported it successfully with no errors in Data import/restore tab. I have the correct userName and password but any time I try and save a user I get this same error.
I've checked the tables > Columns folder and I see the name column is listed. And I've tried dropping the db / schema and starting from scratch a couple times just incase something went wrong with that part.
I am new to using MySQL and working with DB's and schemas in general. So I'm not sure where to look to solve this error. I could use an idea of where this error could be coming from? And any advice on handling it.

How to set active my database from sleep command

I'm currently using MySQL Query browser to view the database of my website. Then I encountered this error
error 1049 unknown database 'testajax'
I already dropped this database after using it to test an ajax function. Then my website did not work liked it used to before. Specifically, I cannot INSERT but I can fetch some of the data from my database. I'm a beginner in MySQL, I looked at the tools tab, MySQL Administrator > Server Connections and then I saw this: (Please click to see the image) I found that my database (crb). Is on sleep command. Is this the reason that's why I cannot use my database? If yes, how can I set my database to active to use it again?

MySQL migration error -1073741571

trying to migrate MS SQL to MySQL with MySQL Workbench but I keep on getting the error below, when it hits the first big table:
ERROR: Copy helper exited with an error: Worker exited with status -1073741571
I've tried Google no luck, tried migration on both the source and target servers no joy.
any ideas?
In my case was that needs the input of the password of mysql admin (wasn't asked need to click on the "store in vault" button).

Hmailserver database version could not be detected

Okay so I'm trying to install HMailServer on my Windows 7 PC with XAMPP, and connect it to the MySQL database in XAMPP. I've been Googling for hours and only finding either ineffective or invalid answers.
I went through the installation to the database set up and selected:
Select a new Hmail server default database
MySQL
Database Server address: E6400, port 3306, Database name: Douglas (All correct I checked it out in PHPmyadmin) Then I typed in my Username and password for a user that I granted all privileges too on the database...
Left service dependency blank
Then on the finish screen it returned
Starting task...
Please wait while updating database settings...
Settings updated.
Restarting server...
Database version could not be detected.
I did place a libmysql.dll file in the hmail server bin (not one from XAMPP because I couldn't find one in there).
Here's my error logs:
"ERROR" 5460 "2015-06-26 21:34:37.341" "Severity: 2 (High), Code: HM5033, Source: DALRecordset::Open, Description: MySQL: Table 'email.hm_dbversion' doesn't exist (Additional info: select * from hm_dbversion)"
"ERROR" 5460 "2015-06-26 21:34:37.341" "Severity: 1 (Critical), Code: HM5010, Source: Application::OnDatabaseConnected, Description: Database version could not be detected."
Do I need to manually create the table .hm_dbversion or something? Let me know if I need to include more information. Thanks everyone!
Just ran into this same issue. This is how I resolved it. There may be a better method to do this but this is what worked for me:
Run the installer and tell it you want to use a different database (MySQL).
Once the installer gets to the step where you setup the database, just cancel the database setup.
Open you hMail folder (C:\Program Files (x86)\hMailServer\DBScripts)
Locate the 'CreateTablesMYSQL.sql' file.
Use a MySQL database editor to create a new schema and execute the above sql file into that new schema.
Next, open the hMail database setup app. (C:\Program Files (x86)\hMailServer\Bin\DBSetup.exe)
Go through the steps to setup your MySQL database using the new schema you just created as the database.
If all was done well, you should fly thr

Easy PHP and mysql ..php cannot see database on local pc (all works on server)

I have a website written in php and mysql (written by someone else) and I need to alter it- just for your interest it is bridgetjonesart.co.uk. So I thought I would download it to my desktop pc and use easy php and mysql locally to make changes then upload it again.
I seem to have downloaded everything okay. I first just tried to run existing php using Easy Php and got
Warning: mysql_connect(): Access denied for user 'runningc'#'localhost' (using password: YES) in C:\Program Files (x86)\EasyPHP-12.1\www\backup from runningc\public_html\bridgetjonesart.co.uk\mysqlLogin\mysql_connect.php on line 6
Could not connect to database. Error
I have the sql database as a file 'runningc_bjart.sql' in the root directory but I think the php cant see it so I tried to use easy php administration, phpmyadmin and thought perhaps I should import the 'runningc_bjart.sql' file. So I tried and got an error message ...
Error
SQL query:
--
-- Table structure for table `Blog`
--
DROP TABLE IF EXISTS `Blog` ;
MySQL said: Documentation
#1046 - No database selected
I am not sure what to try next, any help would be really appreciated.
Thank you. Bridget
The error messages are VERY clear.
Error #1: You're using the incorrect credentials, or have forgotten to grant rights on your database to the credentials you're using.
Error #2: You've forgotten to set a default database, so MySQL has no idea which database it should be looking in for the table you're trying to drop.
e.g. you need
mysql_select_db('mydatabase');
or change your DROP query to be
DROP TABLE mydatabase.Blog;
With phpmyadmin, create a new database named runningc_bjart and import the file there. Then search in your project for a config file where the db password is set and change it with your local mysql password