В /etc/mysql/my.cnf установите datadir = / home / mysql_data, где на самом деле находятся файлы базы данных на вашем компьютере
While its true that you cant tell how long the query is going to take, its possible to give your user and idea of the time lapsed/remaining. You use the progress bar control from your VB IDE. You then set its 'max' property to your query recordcount. As you iterate through the records increase the progress bars 'value' property. Here's an example; ('Rs' is an ADODB recordset)
ProgressBar1.Max = Rs.RecordCount - 1
For P = 0 To .RecordCount - 1
ProgressBar1.Value = P
'some process here
Rs.MoveNext
Next P
Шаги получения данных из базы данных:
В большинстве случаев вы не можете сказать, сколько времени это займет, поэтому вместо индикатора выполнения подумайте о комбинации: