Automatically Monitor MySQL servers for crashed tables [closed] - mysql

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Is there some ready off the shelf solution that would periodically connect to MySQL server, check for crashed tables and automatically initiate repair and/or send administrator an email?

MySQL has come up with a MySQL Enterprise Monitor web applciation tool that helps you to monitor the MySQL Servers. It can also be used to send an alert the administrators of errors.

I resorted to writing a simple Scheduled task that runs myisamchk periodically

It is not ready off the shelf, but very easy solution - every table crash is written to MySQL error log (usually .err in data directory. You can create very simple script that is awaken every X minutes and checks this log file (using tail -XXX command for example) for entries with 'marked as crashed'. Then it can alert in any way.

Is it crash a lot? if it is crashing a lot , I think you have to find the reason for why it is crashing. May be there is a hardware problem or another problems.

Related

Oracle Instance has been stopped for no reason [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I have free Oracle Cloud always free instance. I was not able to connect to it by ssh and it looks like it was stopped.
I cannot re-run it. I get:
Unable to start instance: Instance ocid1.instance.oc1.eu-frankfurt-1.antheljscauatxycmb7qvp36l6jmfffvhfjqspjo6zz3xzbjletwexs7fvsa is disabled and will not accept any action requests. Please contact customer support to reenable.
Customer support doesn't work. Any idea what to do and why it was stopped ?
Is that an ampere A1 flex instance that was stopped? are you within the initial 30 days free trail or it got expired?
I discovered the same issue today with my always-free VM. This Redit post from a few months back is really helpful.
The solution is to create a backup of the boot volume, then terminate the stopped VM instance without deleting the associated boot volume, and finally create a new instance matching the specs of the original VM using the "Create Instance" option from the boot volume page.
The Redit post provides a nice, clear set of instructions. Worked perfectly for me.
As to the reason for Oracle disabling the instance in the first place, #Anupam's answer is very helpful, though I'm not sure where this info came from. I certainly didn't get a heads-up email like the one sent out when Oracle indicated they were going to pause my transaction database.

Is it OK to copy DB files from one MySQL server to another? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I have two identically configured MySQL 5.6.10 servers and needed to move the data files fast from one to the other. Is this an OK procedure?
Here is what I did:
1) Shut down both servers
2) Moved all the files from one box to the other (DATA is on a separate drive on both machines)
3) Turned the second server on
4) Connected it back to the app server
It took about 5 minutes to move all files (~50GB) and all seems to work. I just wonder if I missed anything?
Thanks much for your feedback.
If both the server versions are same, then I think, it's perfectly fine, not just OK, as I have done the same many times, without any data loss, but this method comes with cost:
You have to shut down mysql server (which is not good, if it's a production server)
You have to make sure the permission of data (mysql) directory is same as the previous one.
You will have to monitor the mysql_error log while starting the second server.
You can use mysqldump, but if you don't want to, then you can use Mysql Workbench's migration wizard, it really takes care of everything.
A much safer and recommended way would be Database Backup And Recovery.
Do a full backup from server1 and restore it to server2. Later then on, you can go for a differential backup.

Programming and computer science basics [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
Today, to make MySQL work on my Ubuntu i found some piece of code that i had to type in the terminal to install MySQL server. Then i had to insert some code like:
mysql -u root -p /*enter*/
then insert my password and enter again.
At this point i created a new database with the code
mysql> create database MyFirstDatabase; /*enter*/
Fact is that i have no idea of what i did and why. Why did i have to install MySQL server and why my workbench wasn't working before? Why my username was root?
Where the database file was created, in which folder?
I want to be able to know the answer to questions like:"what happen in the machine when i declare a variable?" or "What happen if i declare an array with a certain number of elements but with no content in them?" and also "what happens in the pc when i run a SQL query with an inner join?".
ADDITIONS
I had also no idea why one of the IT technician of the university asked me if i had an apache server. Why did he ask this? I admit i have no idea of client/server from a technical perspective
By inserting the first command in the terminal you're accessing the MySQL cli interface which commands the MySQL server. The second command (with prompt mysql>) is a query itself made directly in the cli and submitted at your enter.
For what MySQL is used for... well you should already know, as "Oracle", it is a relational database and it is used to store data in a relational way.
Root is the username with ALL privileges, in every field, the root user is the one who have all the power in his hand. Database files are usually stored in /var/lib/mysql if I remember correctly (on Ubuntu).
For the other questions I can't really answer you since it would require much time and starting from scratch.
Beware: Asking for suggestions or recommendations in this site is a good way to get your question closed.

Migrating localhost MySQL to AWS Oracle seems to wait for four hours [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I am currently migrating a localhost MySQL database of quite some size to an AWS server with Oracle. I am using the SQL Developer tool with an installed add-on feature for MySQL support. The migration process is going quite slow and from the diagnostics tools it seems that the space on the server is reduced (sign of data transfer) every fourth hour.
Is this due to the diagnostic tool or any constaint added to the server?
If it is a constraint on the server, how can I remove this so data can be transferred faster?
I have now been migrating for about 40 hours and just 2 gigabytes are transferred. It seems like the transfers are performed every fourth hour.
Hard to tell from your post but are you using the migration wizard in SQL Developer? Is it an online or offline migration?
An online migration for a large database will be very slow, as it is literally rebuilding your database one row at a time, including integrity checks, redo generation, index building, etc.

Need a web host that allows MySQL triggers on shared accounts [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
Does anyone have experience with or know of a web host that allows the use of MySQL triggers on shared (read "cheap") accounts?
I currently use Surpass Hosting and they told me this was a feature they won't support for security reasons.
Update
I've checked with bluehost, Host Monster, and DreamHost and none of them support triggers.
This is all due to triggers requiring the SUPER privilege. MySQL 5.1.6 will implement a TRIGGER privilege, which should alleviate the issue.
The only host I found so far to support mysql triggers on shared packages is placehost
I think most hosts that have mysql 5 or later will support triggers, but i have actually not used them with mysql myself.
Ive use Dreamhost for many years and alwasy been happy with them (http://dreamhost.com or http://www.dreamhost.com/r.cgi?redpirk to give me credits ;)
if you send me short code snippet, i can test.
i've used nativespace.co.uk (affiliate link). very helpful service and setup triggers for me even though there wasn't an option to do it on the control panel.
Josh
I can confirm that namesco did not allow me to set up triggers on their shared hosting package.