Quantcast
Channel: MySQL Forums - Microsoft Access
Viewing all 487 articles
Browse latest View live

MS Access->MySQL, queries did not transfer at all (2 replies)

$
0
0
Just migrated an MS AccessDb (2003) to MySql.
100 tables were OK.
80 queries, here called Views and Procedures, did NOT transfer at all.
Message example:
MsAccess reverseEngineerViews: Cannot reverse engineer view "UserFTSearchQry"

Aren't queries normally being transferred?
Must I take the SQL code for every Access query, format it for MySQL, and manually copy it to MySQL?
TIA

AllowZeroLength vs NOT NULL (3 replies)

$
0
0
I'm converting an Access 97 app to MySQL with web pages and such via an AMP stack and I am a little confused over a couple of differences. I'm hoping I can get clarification here.

I've executed the Database Documenter in Access and have a rather large text file I'm using as a template to guide my schema development in MySQL (hope that's the right terminology). But, I'm kinda stuck on the issue of Access' AllowZeroLength and MySQL's NOT NULL attributes.

I'm under the impression that an AllowZeroLength setting of false would require that something be in that field. This seems to match up nicely with the NOT NULL attribute of a column in MySQL. First of all, am I correct on this?

Secondly, in Access I also see an attribute of 'Required', which is also a true/false condition, that in my mind seems redundant for a field. If an Access field has AllowZeroLength set to false and Required set to true, are they doing the same thing? It seems at first that I can accomplish the same thing in MySQL by merely setting the NOT NULL attribute on a field.

How's my thinking on this so far?

ODBC--call failed [MySQL][ODBC 5.3(w) Driver]pmysqld-5.7.15-log] Sort Aborted (no replies)

$
0
0
I have 3 tables in a MySQL Data Schema on which I am trying to perform a summary query in MS Access via ODBC. The query connects the tables via Left Joins, i.e., Table 1=>Table 2=>Table 3. The joined fields have indexes.

Table 1 contains about 1.9 million records
Table 2 contains about 15 thousand records
Table 3 contains about 100 records

The MySQL Schema is connected via System DSN using the 32-bit MySQL ODBC 5.3 Unicode Driver.

When I run the Query, I receive the following error message in MS Access:

++++++++++++++++++
ODBC--call failed.
[MySQL][ODBC 5.3(w) Driver]pmysqld-5.7.15-log]Sort Aborted: Query execution was interrupted, maximum statement execution time exceeded (#1028)
++++++++++++++++++

I haven't been able to find anything via multiple searches on the MySQL site or in other developer forums that illuminates the issue and why it is occurring.

Is this a ODBC or MySQL settings issue or setup issue or is it a Performance issue or other?

Error when migrating an Access database to MySql (no replies)

$
0
0
I know there is another thread on this topic but there doesn't seem to be any response. When trying to migrate an access database to MySQL I am getting the following error on the step that comes after "Fetch Schemas List". I've done this before using the same database file but on another PC with no issues. I am running the most current version of MySQL Workbench. Can someone help me figure out this problem?
Thanks

Starting...
Connect to source DBMS...
- Connecting...
Connecting to ...
Opening ODBC connection to DSN=CMF-Processing...
Traceback (most recent call last):
File "C:\Program Files\MySQL\MySQL Workbench 6.3 CE\modules\db_msaccess_re_grt.py", line 697, in connect
return MsAccessReverseEngineering.connect(connection, password)
File "C:\Program Files\MySQL\MySQL Workbench 6.3 CE\modules\db_msaccess_re_grt.py", line 148, in connect
con = db_driver.connect(connection, password)
File "C:\Program Files\MySQL\MySQL Workbench 6.3 CE\workbench\db_driver.py", line 91, in connect
connection = library.connect(connection_string, password=password)
pyodbc.Error: ('HY000', 'The driver did not supply an error!')

Traceback (most recent call last):
File "C:\Program Files\MySQL\MySQL Workbench 6.3 CE\workbench\wizard_progress_page_widget.py", line 66, in run
self.func()
File "C:\Program Files\MySQL\MySQL Workbench 6.3 CE\modules\migration_schema_selection.py", line 164, in task_connect
if not self.main.plan.migrationSource.connect():
File "C:\Program Files\MySQL\MySQL Workbench 6.3 CE\modules\migration.py", line 201, in connect
self._rev_eng_module.connect(self.connection, self.password or "")
SystemError: Error("('HY000', 'The driver did not supply an error!')"): error calling Python module function DbMsAccessRE.connect
ERROR: Error during Connect to source DBMS: Error("('HY000', 'The driver did not supply an error!')"): error calling Python module function DbMsAccessRE.connect
ERROR: Exception in task 'Connect to source DBMS': SystemError('Error("(\'HY000\', \'The driver did not supply an error!\')"): error calling Python module function DbMsAccessRE.connect',)

Failed

No Schemata Listed for Access Migration (1 reply)

$
0
0
I've exact same symptoms as described in http://forums.mysql.com/read.php?65,646707,646707#msg-646707.

OS: Win 10 64 bit Professional
MySQL:
MySQL Workben: 6.3.7 build 1199 CE (64 bit) Community Edition
Access Product: Not Installed
Access ODBC Driver: 14.00.7010.1000 64 bit

As mentioned in above post: Documentation shows Access as an option in Database System combobox but I've not Access option so chose Generic RDBMS.

Database System: Generic RDBMS
Connection Method: ODBC Data Source
DSN: Valid DSN

Below is log from Fetch Schema List screen:


Starting...
Connect to source DBMS...
- Connecting to source...
Connecting to ...
Opening ODBC connection to DSN=BTLicUpd...
Connected
Connect to source DBMS done
Check target DBMS connection...
- Connecting to target...
Check target DBMS connection done
Retrieve schema list from source....
- Checking connection...
- Fetching catalog names...
- Fetching schema names...
- Fetching schema names from D:\Dev\BTechSoft\Received Files\BTLicense - Upd.accdb...
- Finished
Retrieve schema list from source finished
Finished performing tasks.

Now, clicking Next takes me to Schema Selection screen but there is no schema listed and the Next button is disabled.

I wrote a little PowerShell script and connecting to same DSN and it successfully lists all the tables. So, obviously the Access file itself is good; the DSN is good too. Something is amiss in MySQL Migration Utility.

PowerShell Script:

$conn = new-object System.Data.odbc.odbcconnection
$conn.ConnectionString = "DSN=<ValidDSN>;Uid=Admin;Pwd=<validPwd>;"
$conn.Open()
$schema = $conn.GetSchema("Tables")
echo $schema

Please help. Our ability to use MySQL in place Access hinges on successful migration of current Access db. Thanks.

Problem starting MySQL (5.5.16) Workbench (no replies)

$
0
0
Full and fresh install of MySQL 5.5.16. MySQL Workbench started ok.
After computer restarted, running MySQL WorkBench has encountered a problem, and I should close (or report the bug).
Information received in the dialog window:
Access to the path 'C:\Program Files (x86)\MySQL\MySQL Workbench CE 5.2.35\db_utils.pyc' is denied. Sexless marriage



How to repeat:
Click MySQL Workbench CE 5.2.35. The same error occured.

Missing Database System "Access" in Source Selection (1 reply)

$
0
0
Hi there,

Im missing the MS Access in Dropdown Menu at Source Selection in the Migration Tool to import the hole Access Database to MySQL. Whats wrong there, do I have to install something special!?

Workbench Access to MySQL migration issue (no replies)

$
0
0
I'm experiencing the same problem as David Plott () October 09, 2014 01:03PM while reverse Engineering a MSAccess database to MySQL.

See: http://forums.mysql.com/read.php?104,621787,621787#msg-621787

I've tried the recommended patch, but the Python 2.7.9 compiler rejects the Continue statement (not inside a loop). If I remove the statement, recompile the pyc and then retry the test I get to this error instead:

SystemError: TypeError("'NoneType' object has no attribute '__getitem__'"): error calling Python module function DbMsAccessRE.getSchemaNames
ERROR: Retrieve schema list from source: TypeError("'NoneType' object has no attribute '__getitem__'"): error calling Python module function DbMsAccessRE.getSchemaNames
Failed

Still an issue with the 'NoneType' object (original complaint was no attribute 'columns'. So I think that the patch is both itself bad as well as doesn't address the underlying problem.

I'm using Workbench 6.2 CE (6.2.5.0 Build 397, 32-bit) on Win7, and MSAccess from Office365.

Your help greatly appreciated!

-----
paul

Repair corrupt database in MS Access 2013 (1 reply)

$
0
0
Hi, I'm having a big problem with a corrupt database in MS Access 2013. I need some help to solve this problem, I saw this post with many access recovery tools, but none of these tools works in Access 2013. I tried with some tools and not even work in Access 2010. Can anyone tell me a tool that works in Access 2013?
Thanks

problem in language (no replies)

$
0
0
when i megration my access DB Shows me in field --> ?????????.
my language arabic and i don't know what character set for arabic .

32 bit workbench not showing MicrosoftAccess under Source Selection while migrating (2 replies)

$
0
0
Hello all,

I choose Database migration from the MySQL start page, And pressed the button start migration. There under Source selection -> Source RDBMS Connection Parameters, a combo box named "Database System" is available where, a list of supported database systems is shown.

As the MS Access to MySQL migration guide suggests here ("https://dev.mysql.com/doc/workbench/en/wb-migration-database-access.html) and here ("http://mysqlworkbench.org/2014/08/how-to-guide-to-database-migration-from-ms-access-using-mysql-workbench/&quot;), the database system "MicrosoftAccess" is not listed in 32 bit version MySQL workbench. But when I installed 64 bit version workbench, everything is showing fine and I did even migrated 64 bit ms access database successfully.

Since MicrosoftAccess was not available I tried selecting "generic RDBMS", but when I press "Test connection" button, It threw an error stating "connection cancelled". I don't remember the error no.

Can anybody please help me to get MicrosoftAccess option in 32 bit workbench?

XML,XL,Access db import (7 replies)

$
0
0
While trying to import XML,XL,Access db data file I'm getting "ERROR: ASCII '\0' appeared in the statement, but this is not allowed unless option --binary-mode is enabled and mysql is run in non-interactive mode. Set --binary-mode to 1 if ASCII '\0' is expected. Query: '��?ࡱ?�'.

Operation failed with exitcode 1
09:11:44 Import of C:Documents\N.xls has finished with 1 errors

I am using MySQL workbench 6.2try to migrated MS Access to MySQL via DNS ODBC connection, after configure the ODBC and perform "Test Connection" and got an error message "Test source DBMS connection Operation Cancelled" (1 reply)

$
0
0
Hi,

Mark Nguyen posted this about a year ago, but there was really no resolution under that thread. I'm trying to migrate Access to MySQL and am following the directions on MySQL workbench 6.3.4, but when I test the connection, it says connection cancelled. There are really no troubleshooting steps from there. I'm running Windows 7 64 bit, if that helps. I ran it from command line with the debug log option, but I have no idea what to do with that information. Any help would be appreciated. Thanks.

ODBC Connection for MS Access 2013 Drivers (2 replies)

$
0
0
I've been trying for days to migrate Access 2013 data to Workbench to which I wish to use from hereon. My Windows system is 7-64 bit Home Premium. I've followed forum & other instructions to point to SysWOW64 etc.

The major problem evolves around the Access drivers. (Via the wizard), after selecting under User DSN tab
Name: MS Access Database
Driver: Microsoft Access Database (*.mdb, *accdb)

when I go to Drivers Tab I can't find a Access driver option that also includes *.accdb option relevant to Access 2013. Result is I can't connect.

To get around this I went into Access 2013 and saved the file to an earlier *.mdb version. This worked fine until the Workbench wizard got to last step ...
"Migration: Could not read from System Tables. You must grant SELECT access on all system tables for the database."

When I went into Access 2013 to grant access for this earlier version it still didn't work.

I've tried to find a download for a MS access 2013 *.accdb inclusive driver without success. I did find ms link https://www.microsoft.com/en-au/download/details.aspx?id=13255 but being a newbie I have no idea of the implications of this download which "...install a set of components that can be used to facilitate transfer of data between 2010 Microsoft Office System files and non-Microsoft Office applications".

Furthermore, when I now click on User Access Database DSN it now returns the message "The setup routines for Microft Access Driver (*mdb, *.accdb) ODBC driver could not be found. Please reinstall driver," When hit OK button, it is followed by another window (Titled Driver's ConfigDSN,ConfigDriver, or ConfigTranslator failed) with "Errors Found: Component not found in the registry" message. Same result if I click on the drivers whether in System32 or SysWOW64 folder.

At my wits end and it's holding up opencart web implementation.

MS Access Reverse Engineering DB Error (1 reply)

$
0
0
I get this error after running the basic migration procedure for MS Access with MySQL 5.3 ANSI Driver database. I tried the other MS Access DB and had no sucess. Please let me know what you think of it. I am trying to get Workbench to open up an ODBC data source so I may save it as a SQL file:

Starting...
Connect to source DBMS...
- Connecting...
Connecting to ...
Opening ODBC connection to DSN=LLLAMySQLConnection...
Connected
Connect to source DBMS done
Reverse engineer selected schemas....
Reverse engineering mysql from def
- Reverse engineering catalog information
- Preparing...
- Gathered stats for mysql
Reverse engineering tables from mysql
[EDITED/abridged: - Retrieving tables...]
- First pass of table reverse engineering for schema mysql completed!
Reverse engineering views from mysql
- Reverse engineering of views for schema mysql completed!
Reverse engineering routines from mysql
- Reverse engineering of routines for schema mysql completed!
Reverse engineering triggers from mysql
- Reverse engineering of triggers for schema mysql completed!
Reverse engineering foreign keys for tables in schema mysql
Traceback (most recent call last):
File "C:\Program Files\MySQL\MySQL Workbench 6.3 CE\modules\db_msaccess_re_grt.py", line 751, in reverseEngineer
return MsAccessReverseEngineering.reverseEngineer(connection, catalog_name, schemata_list, context)
File "C:\Program Files\MySQL\MySQL Workbench 6.3 CE\modules\db_msaccess_re_grt.py", line 351, in reverseEngineer
cls.reverseEngineerTables(connection, schema)
File "C:\Program Files\MySQL\MySQL Workbench 6.3 CE\modules\db_msaccess_re_grt.py", line 438, in reverseEngineerTables
cls.reverseEngineerTableFKs(connection, table)
File "C:\Program Files\MySQL\MySQL Workbench 6.3 CE\modules\db_msaccess_re_grt.py", line 621, in reverseEngineerTableFKs
for row in cls.get_connection(connection).cursor().execute("SELECT * FROM MSysRelationships WHERE szObject = ?", (table.name,)):
pyodbc.ProgrammingError: ('42S02', "[42S02] [MySQL][ODBC 5.3(a) Driver][mysqld-5.6.17]Table 'mysql.msysrelationships' doesn't exist (1146) (SQLPrepare)")

Traceback (most recent call last):

Appending MS Access table to MySQL table using MySQL Workbench (1 reply)

$
0
0
Hi,

I am total new to MySQL (and MySQL workbench). I have a table that is stored in MS Access that I want to append into a table in MySQL. I can download the MySQL table into Access, append the table from Access to the MySQL table then upload the new table, but there must be a better way of doing this. I am not a coder, so was planning on using MySQL Workbench as an easier process (?).

Thanks for any help you can give me.

Regards,

David

Workbench Access migration issue (2 replies)

$
0
0
Hello

Workbench 6.3.5 build 201 , MS windows 7 service pack 1 and MS access 2013.

I'm trying to migrate a data base I've created on access2013 to mysql with workbench migration tool.

Everything is going fine until the step "reverse engineer source", where process stops at the step "reverse engineering selected schemas".

I don't know what I have to do to fix the problem, maybe changing charset in the "source selection" step, but with which charset ?

Here is the log :

Starting...
Connect to source DBMS...
- Connecting...
Connecting to ...
Opening ODBC connection to DSN=mpd_site_web...
Connected
Connect to source DBMS done
Reverse engineer selected schemas....
Reverse engineering Base de données2 from def
- Reverse engineering catalog information
- Preparing...
- Gathered stats for Base de données2
Reverse engineering tables from Base de données2
Traceback (most recent call last):
File "C:\Program Files (x86)\MySQL\MySQL Workbench 6.3 CE\modules\db_msaccess_re_grt.py", line 751, in reverseEngineer
return MsAccessReverseEngineering.reverseEngineer(connection, catalog_name, schemata_list, context)
File "C:\Program Files (x86)\MySQL\MySQL Workbench 6.3 CE\modules\db_msaccess_re_grt.py", line 291, in reverseEngineer
cls.reverseEngineerTables(connection, schema)
File "C:\Program Files (x86)\MySQL\MySQL Workbench 6.3 CE\modules\db_msaccess_re_grt.py", line 420, in reverseEngineerTables
grt.send_progress(i / total, 'Retrieving table %s.%s...' % (schema.name, table_name))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 29: ordinal not in range(128)

Traceback (most recent call last):
File "C:\Program Files (x86)\MySQL\MySQL Workbench 6.3 CE\workbench\wizard_progress_page_widget.py", line 192, in thread_work
self.func()
File "C:\Program Files (x86)\MySQL\MySQL Workbench 6.3 CE\modules\migration_schema_selection.py", line 175, in task_reveng
self.main.plan.migrationSource.reverseEngineer()
File "C:\Program Files (x86)\MySQL\MySQL Workbench 6.3 CE\modules\migration.py", line 369, in reverseEngineer
self.state.sourceCatalog = self._rev_eng_module.reverseEngineer(self.connection, self.selectedCatalogName, self.selectedSchemataNames, self.state.applicationData)
SystemError: UnicodeDecodeError("'ascii' codec can't decode byte 0xc3 in position 29: ordinal not in range(128)"): error calling Python module function DbMsAccessRE.reverseEngineer
ERROR: Reverse engineer selected schemas: UnicodeDecodeError("'ascii' codec can't decode byte 0xc3 in position 29: ordinal not in range(128)"): error calling Python module function DbMsAccessRE.reverseEngineer
Failed

Reverse engineer: Error calling Python function DbSQLAnywhereRE.reverseEngineer (1 reply)

$
0
0
I am migrating from Sybase SQL Anywhere 9.0 to MySQL 5.6.17 on my local computer (WAMP). I can connect to both DBs however the migration wizard fails at the Reverse Engineer stage presenting the following error:

Starting...
Connect to source DBMS...
- Connecting...
Connect to source DBMS done
Reverse engineer selected schemas....
Reverse engineering DBA, SYS, dbo, rs_systabgroup from sianbima43
- Reverse engineering catalog information
Traceback (most recent call last):
File "C:\Program Files (x86)\MySQL\MySQL Workbench 6.3 CE\modules\db_sqlanywhere_re_grt.py", line 470, in reverseEngineer
return SQLAnywhereReverseEngineering.reverseEngineer(connection, catalog_name, schemata_list, context)
File "C:\Program Files (x86)\MySQL\MySQL Workbench 6.3 CE\modules\db_sqlanywhere_re_grt.py", line 169, in reverseEngineer
catalog = super(SQLAnywhereReverseEngineering, cls).reverseEngineer(connection, '', schemata_list, context)
File "C:\Program Files (x86)\MySQL\MySQL Workbench 6.3 CE\modules\db_generic_re_grt.py", line 237, in reverseEngineer
catalog = cls.reverseEngineerCatalog(connection, catalog_name)
File "C:\Program Files (x86)\MySQL\MySQL Workbench 6.3 CE\modules\db_generic_re_grt.py", line 388, in reverseEngineerCatalog
cls.reverseEngineerUserDatatypes(connection, catalog)
File "C:\Program Files (x86)\MySQL\MySQL Workbench 6.3 CE\modules\db_sqlanywhere_re_grt.py", line 41, in wrapped_method
res = method(cls, connection, *args)
File "C:\Program Files (x86)\MySQL\MySQL Workbench 6.3 CE\modules\db_sqlanywhere_re_grt.py", line 194, in reverseEngineerUserDatatypes
for type_name, sql_definition, parent_type in cls.execute_query(connection, query):
File "C:\Program Files (x86)\MySQL\MySQL Workbench 6.3 CE\modules\db_generic_re_grt.py", line 76, in execute_query
return cls.get_connection(connection_object).cursor().execute(query, *args, **kwargs)
pyodbc.ProgrammingError: ('42S22', "[42S22] [Sybase][ODBC Driver][Adaptive Server Anywhere]N\xe3o \xe9 poss\xedvel encontrar a coluna 'base_type_str' (-143) (SQLExecDirectW)")

Traceback (most recent call last):
File "C:\Program Files (x86)\MySQL\MySQL Workbench 6.3 CE\workbench\wizard_progress_page_widget.py", line 192, in thread_work
self.func()
File "C:\Program Files (x86)\MySQL\MySQL Workbench 6.3 CE\modules\migration_schema_selection.py", line 175, in task_reveng
self.main.plan.migrationSource.reverseEngineer()
File "C:\Program Files (x86)\MySQL\MySQL Workbench 6.3 CE\modules\migration.py", line 369, in reverseEngineer
self.state.sourceCatalog = self._rev_eng_module.reverseEngineer(self.connection, self.selectedCatalogName, self.selectedSchemataNames, self.state.applicationData)
SystemError: ProgrammingError("('42S22', "[42S22] [Sybase][ODBC Driver][Adaptive Server Anywhere]N\xe3o \xe9 poss\xedvel encontrar a coluna 'base_type_str' (-143) (SQLExecDirectW)")"): error calling Python module function DbSQLAnywhereRE.reverseEngineer
ERROR: Reverse engineer selected schemas: ProgrammingError("('42S22', "[42S22] [Sybase][ODBC Driver][Adaptive Server Anywhere]N\xe3o \xe9 poss\xedvel encontrar a coluna 'base_type_str' (-143) (SQLExecDirectW)")"): error calling Python module function DbSQLAnywhereRE.reverseEngineer
Failed

Any clue how to solve this?

Access form ODBC error using "GET DIAGNOSTICS" (1 reply)

$
0
0
It's well known that Accesss forms don't return the exact ODBC error message. If you perform an insert without setting a NO NULL field to a value it just returns "ODBC call failed" rather than e.g. "'Field ''table1col3Nonnull'' doesn''t have a default value'".

You can use DAO or ADO and return the precise error after performing a query in DAO or ADO but when the query is called by an Access form the only error returned is "ODBC call failed".

I tried using this function:

CREATE FUNCTION `new_function` ()
RETURNS VARCHAR(5)
BEGIN
GET DIAGNOSTICS CONDITION 1 @p1 = RETURNED_SQLSTATE, @p2 = MESSAGE_TEXT, @p3 = MYSQL_ERRNO;
RETURN @p1;
END

The function works fine when called from MySQL workbench but returns null when called from VBA e.g.:

Set rs = db.OpenRecordset("SELECT mydb.new_function();", dbOpenSnapshot, dbSQLPassThrough)
Debug.Print rs.Fields(0)

This returns null (and subsequent calls to the function from within MySQL workbench does return the error code meaning that the diagnostics area is still populated with the error.

When the function is changed to:

CREATE FUNCTION `new_function` ()
RETURNS VARCHAR(5)
BEGIN
GET DIAGNOSTICS CONDITION 1 @p1 = RETURNED_SQLSTATE, @p2 = MESSAGE_TEXT, @p3 = MYSQL_ERRNO;
RETURN "Testing";
END

Set rs = db.OpenRecordset("SELECT mydb.new_function();", dbOpenSnapshot, dbSQLPassThrough)
Debug.Print rs.Fields(0)

Returns "Testing" as expected.

I've also tried "SHOW ERRORS;" but this returns null as well.

Does anyone know if ODBC/VBA can return variables ok? Or is it just that "GET DIAGNOSTICS" doesn't work when called from ODBC/VBA?

Or does anyone know of another method to return the precise error?

mysql database to Access 2013 (no replies)

$
0
0
In Access 2013 I click on external data and choose ODBC database. I choose to link to the data source. I choose machine data source, and choose the mysql data source. It brings me to a screen asking for the server ip, password, etc. I put in the information and test, and the test says successful, but when I hit ok, Access crashes. Any ideas what is happening? The mysql database is on a different computer if that makes a difference.
Viewing all 487 articles
Browse latest View live