Table Corruption in MySQL Database

A Request Tracker (RT) enables you to keep a record of all the operations performed in MySQL database. RT creates a session by using a MySQL database, a PERL (Practical Extraction and Report Language) based main engine and front-end web and mail interfaces. However, if RT is unable to store your transactions made into the MySQL component, chances are that your MySQL component is either corrupt or missing. Corruption of MySQL database component can occur due to MySQL database server malfunctioning, operating system failure, malicious software like virus and more. In such situations, you need to recover the MySQL database component by restoring it from the latest backup. But, if you have not maintained any backup or backup falls short of providing the required data, then you should repair your corrupted MySQL component to extract data from it. To do so, you need to use advanced MySQL Database Repair application.

Consider a practical scenario where you encounter the below error message when you attempt to save some changes in session_data table:

“RT couldn’t store your session. This may mean that that the directory ‘/extra/requesttracker/current/var/session_data’ isn’t writable or a database table is missing or corrupt.”

Cause:

The root cause behind occurrence of above error message is that the session_data table is either missing or corrupt.

Continue reading “Table Corruption in MySQL Database”

Querying Table Data Using Visual Basic Code in MS Access

In order to fully utilize the capabilities of MS Access, one must learn not only learn the Visual Basic (VB) programming language, but should also learn Standard Query Language (SQL). Once a grasp of these two languages have been obtained, MS Access users can begin to build faster and more efficient databases.

One tool that has proved itself very useful to me over the years is querying data from tables or queries using VB and SQL code. A brief introduction to this process is presented in this article. To best understand this process, an example is provided below along with an explanation of its parts.

'*********CODE***********

Dim rstTemp As Recordset

Dim strSQL As String

Dim routeNum As Integer

strSQL = "SELECT [Route], [Main Route PM], [Intersecting Route], [IntBeginPM], [IntEndPM] “

strSQL =  strSQL + “FROM Intersections_list WHERE (((CStr([Route])) = """ + cmbRouteQuery + """));"

Set rstTemp = CurrentDb.OpenRecordset(strSQL, dbOpenDynaset)

If (Not (rstTemp.EOF)) Then

rstTemp.MoveFirst

routeNum = rstTemp(0)

'************************

Continue reading “Querying Table Data Using Visual Basic Code in MS Access”