Can not load MySQL driver weblogic - mysql

I'm trying to connect MySQL database to weblogic so that I can use it in my project, I'm very new to this, anyway, I have created a data-source, I selected MySQL as a database type > I put my database name, host: localhost, port:3306, database username, and password, driver class name: com.mysql.jdbc.Driver
when ever I test connection it gives: Cannot load driver: com.mysql.jdbc.Driver
I downloaded J-connector I have put it in:
C:\Oracle\Middleware\wlserver_10.3\server\ext\jdbc\mysql
But it's not working!

What version of mysql are you using?
If it is version 8 of mysql you must update the driver in the Weblogic. In this link https://dev.mysql.com/downloads/connector/j/
luck

Related

Apache NiFi on Windows machine failed to connect to MySQL database on same host

I have an instance of Apache NiFi running on the windows machine. I have failed to connect it with the MySQL database which is running on localhost and is accessible from any host.
I have attached the configurations of the connection
I tried to change the class name from com.mysql.jdbc.Driver to com.mysql.cj.jdbc.Driver and vice-versa without success, I also tried to change the Database connection URL port from 3306 t0 33061 and vice-versa also without any success.
on the bulletin board am getting the error "No suitable driver for the given Database Connection URL: No suitable driver for the given Database Connection URL and the status is stuck on enabling even after restarting the apache NiFi.
Please assist am stuck in here.
ps: I don't have password set for the root user of my database
typo in url - you have jbds instead of jdbc

Can't connect to database with db client [08001]

I am using laravel homestead on linux and when I want to connect to database with phpstorm or DBeaver I receive:
[08001] Could not create connection to database server. Attempted reconnect 3 times. Giving up.
Index 5 out of bounds for length 5.
I investigate and find that problem could be with jdbc driver but all of my drivers are up to date. On homestead I use mysql 5.7 and both (phpstrom and DBeaver) are up to date.
I finally figure out. For homestead on linux you need to pass this credentials:
host: 192.168.10.10
instead of 127.0.0.1 or localhost
username and password are the same: homestead and secret

Migrate MS SQL Server database to MySQL using Workbench migration wizard over ssh

I am trying to migrate a SQL Server 2008 database to MySQL. The MySQL database is on a vps on digital ocean. In the migration process, the source selection was successfull but the target selection is not. For the target selection, I used the connection method as Standard TCP/IP over SSH. Clicking on Test connection gives the error "Unsupported connection method. MySQL connections over SSH are not supported in this version of MySQL workbench migration wizard."
I have MySQL version 6.1
These are the parameters I used:
SSH Hostname: host IP address:22
SSH Username: root
SSH Password: host password
SSH KeyFile: I did not set up a key file for my MySQL db. Is it required?
MySQL HostName: 127.0.0.1
MySQL Server port: 3306
username: root
password: password to MySQL
Please tell me if I am missing something or if I am giving the parameters wrong.
Do I have to set the ssh key file to migrate the database over ssh?
Note
The migration process does not support source or target RDBMS connections through SSH.
A workaround is to set up an encrypted tunnel, and then treat the MySQL target as a standard TCP (unencrypted) connection.
I found this note on the MySQL Workbech documentation for migration wizard. Heres the link
http://dev.mysql.com/doc/workbench/en/wb-migration-install.html
I do not know how to do the migration with the suggested work around. Any help will be greatly appreciated.
Thanks.
This is what I did:
First, Install MySQL on the same machine where the MS SQL Server database exists. Use the MySQL Migration wizard to migrate the database locally. Now there are two options here.
OPTION 1: Create a backup file for the migrated database in MySQL. Use this backup file and restore database in the target MySQL.
OPTION 2: Export each table from the migrated database in MySQL to .csv files and then copy these files to the server and import them in to the target MySQL database.

Access mysql data base remotely from playframework 1.2.4

I want to access sql database remotely from play framework version 1.2.4
I am running play in virtualbox and I have mysql database in local pc.
app/conf/application.conf
db.url=jdbc:mysql://xxx.xxx.47.78:3306/vedb
db.driver=org.postgresql.Driver
db.user=root
db.pass=aaa123aaa
/etc/mysql/my.cnf
bind-address=xxx.xxx.47.78
when I start the app with http://localhost:9000/ I am getting below error
A database error occured : Cannot connected to the database,
Communications link failure The last packet sent successfully to the
server was 0 milliseconds ago. The driver has not received any packets
from the server.
In your example you define a mysql URL but set the driver to postgresql...
Try to comment the driver setting, or set it to: 'com.mysql.jdbc.Driver'
You can alos try to connect to your mysql server using the mysql command line:
mysql -h xxx.xxx.47.78 -u root -p
Then enter the root password (mysql root password). This will test the network connection to the mysql server.

Excel VBA to connect to MySQL on linux server

I am trying to connect to MySQL database using VBA from my local machine. The database is in the linux server(XXXX.xxx.edu). I have the SSH client in my machine through which I connect to the *****.xxx.edu server. Once when I login and use the below command, I am able to access the MySQL database without any problem.
mysql -p -h XXXX.XXX.edu -u username dbname
However,I need to run the VBA in my machine and insert the values into this database. I tried to connect using the code mentioned in the below link.
Error in VBA:`[Microsoft][ODBC Manager] Data source name not found and no default driver specified
As told in the suggestion of the above link, I installed the MYSQL ODBC drivers which installed the MySQL 5.5 in my machine. Even after installing, I get the error,
[Microsoft][ODBC Manager] Data source name not found and no default driver specified
I am not able to figure out what exactly is the problem. How should I connect to the linux server and then connect to the MySQL database?
you install the mysql odbc driver (the msi) from here.
http://dev.mysql.com/downloads/connector/odbc/
you run ODBC Data Source Administrator
go to System DSN
click Add
select, for instance, MySql ODBC Unicode Driver
click finish.
dns name: fred
description: fred
tcpip server: 192.168.1.11 (whatever, dns, so long as u can point to it)
port 3306
user: root (whatever)
pwd: whatever works
drop down database, click test or view them