ODBC Conncetion to MySQL 5.1 - mysql

I have a database built by a commercial company. Their reporting is basically non-existent. They have a few canned reports but not what we need. Of course, they highly recommend not connecting to the database and can build custom reports for a "small fee".
My thoughts were to connect to the database using linked tables, then use something like Business Objects, Access, or even Excel to build all the reports I want for a "small fee". The only means I know to do this requires an ODBC connection. I have downloaded / installed the MySQL 5.1 Driver. But, I am having issues connecting.
I have a user name and password for the server. When I try the test connection I get
Connection Failed: [HY000][MySQL][ODBC 5.1 Driver]Access denied for
the user 'userrname'# '....'(using password: YES).
Tried establishing a read only account as well without a password and received the same error message but at the end it says
(using password: NO)
Any suggestions as to what is causing this? Any workaround?

Things you need to do:
Make sure you have the user/password correct.
Make sure you are granted access to the database with: grant all privileges on db.* to 'youruser'#'your ip' identified by 'YOURPASSWORD';

Related

rails generate paper_trail:install needs access to database?

When I try to run rails generate paper_trail:install [--with-changes] it wants to access the database, but at that point the database is not yet running.
1: from /local-home//.rvm/gems/ruby-2.7.1#Project/gems/mysql2-0.5.3/lib/mysql2/client.rb:90:in initialize' /local-home//.rvm/gems/ruby-2.7.1#Project/gems/mysql2-0.5.3/lib/mysql2/client.rb:90:in connect': Access denied for user 'xxx'#'localhost' (using password: NO) (Mysql2::Error::ConnectionError)
There are no migrations running as per the documentation.
How to avoid this?
Why does it want to access the database?
[SOLVED] See https://github.com/paper-trail-gem/paper_trail/pull/1308
This solution adds a flag to the installer to set --mysql so it won't have to make a database connection.

Windows client for MySQL 4.1

Today i find myself administrating a 2003 MySQL database, does anyone know a Windows Client for MySQL 4.1?
I tried Workbench, DbVisualizer and DBeaver.
The problem mainly is from the auth, somewhere around version 4, MySQL changed the auth method, and the new clients no longer support that kind of connection.
Workbench in particular has an "use old authentication method" as a advanced option, but it seems that it's not enough.
I tried console connection and works just fine, but they are simply to many data and to many work to do to use only console (and the DDBB it's too big as well).
Before checking the "use old auth.." the error message was:
Error connecting to datasource "MySQL - DDBB"
SQL Error [1044] [42000]: Access denied for user 'user'#'%' to database 'information_schema'
Access denied for user 'user'#'%' to database 'information_schema'
Which make sense since the information schema table does not exists in that MySQL version (so i been told)
After checking and using the old auth method, the error is:
Your connection attemp failed for user 'user' from your host to server at ...... MySQL version is older than 5.0, which is not supported.
Anyone has an old client or the possiblity to bypass the old auth and work with a visual client for MySQL 4.1?
Heidi SQL worked just fine.
Also, you can try http://downloads.mysql.com/archives/workbench/
Problem solved.
You might also be able to connect in DBeaver using the MariahDB drivers which have the authentication method built in.

Can't access homeage after login in to phpMyAdmin

After I logged in to phpMyAdmin, our homepage isn't available anymore and I don't know why.
Here's the error:
Unable to establish connection to MySQL
1044 : Access denied for user ''#'localhost' to database 'c6dsneu'
But when I log in to phpMyAdmin, everything seems ok.
Looks like whatever program powers your home page lost the MySQL username to connect to the database server. How you fix it will depend entirely on what software you use, but generally there's a configuration file that contains this information. You should properly set your username there. What software package is it?

Access denied for user 'root'#localhost' (using password: YES)

I am using a piece of hardware called a Meshlium AP, which I use to estimate where people are based on smartphone pings. If I am connected to the meshlium network I can access the management panel at 10.10.10.1.
Originally, I was working on a Windows Laptop and when connected to the Meshlium network, within their Management system (located at 10.10.10.1) I have the option to go to phpMyAdmin on local host to download the SQL data. I was able to login with the supplied username and password. I am still able to do this easily
I am now working on a Mac and when I attempt to login phpMyAdmin through their management system, I get this error "Access denied for user 'root'#localhost' (using password: YES)". I am using the same username and pass that still currently works on the PC
I have a feeling it might be some permission issues, but I have no idea how or what to change.
Any thoughts on how or what permissions I can change to gain access?
If you're sure that the password is correct then it sounds like the 'host' for the user is only localhost, and not setup to allow other hosts (even on LAN) to connect.

How do you fix this error: MySQL ODBC Access denied for user 'ODBC'#'localhost'?

I had used .mdb for my ASP applications. Since I've learned and used php, I, now, want to use ASP applications with MySql databases. However, I get some errors that I cannot figure out.
This is my code:
set conn=server.createobject("ADODB.Connection")
bag="DRIVER={MySQL ODBC 3.51 Driver};UIN=aksar_isilak;PWD=741285;SERVER=localhost;DATABASE=aksarayf_isilak;OPTION=3"
conn.open bag
And when I execute it, I get this error message:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[MySQL][ODBC 3.51 Driver]Access denied for user 'ODBC'#'localhost' (using password: YES)
C:\INETPUB\VHOSTS\ISILAK.COM\HTTPDOCS\YONETIM\../vt.asp, line 6
This is not my server, it is an hosting, I can create some ODBC connection on plesk panel, just you to know.
Thanks for any help.
Try the recommended connection string format; http://connectionstrings.com/mysql#p30 which uses username/password rather than UIN?/PWD.
Are you sure it's the correct password? Also maybe check permissions of user trying to access the specific database.
UID=user is the normal ODBC attribute, not UIN=user
Maybe your are not passing the right parameter because the message says you're trying to connect using the user "ODBC".
'localhost' is ok since you're running the app in the same server.