Flutter MySql Connection with Plesk Server MariaDB - mysql

i got a Problem with a MYSQL Server Connection, i looked to much Videos on Youtube but its making this only with Localhost, i got a Plesk Hosting and a IP Adress, i tested the mysql1 Package from pub.dev but its not also working im getting Problem as ,
has anybody know how can i connect a Database and get Data from Row ?
I changed also Plesk Settings as Remote Connection Allowed to Database.
Thanks.

Related

Trying to access XAMPP database from another domain

I just need some help with accessing my DB. I'm moving my websites from XAMPP to a hosting provider is there any way of allowing XAMPPs MySQL DB to be accessed outside of its IP. When I tried to do this I cant a simple Connection Refused error.
I need to use the XAMPP DB because a python script I have for some reason doesnt work with my hosting provider DB.
'Localhost' XAMPP Server DB ---DATA---> 'www.example.com'

Can't connect to MySQL server (hosted by strato) error: 2013 lost connection to mysql server at 'reading initial communication packet' system error 0

Hi I am trying to connect to my MySQL DB which is hosted by strato. On their site I can create a DB and I did. I am able to connect via PuTTy like shown in this link. And I found the port, hostname etc as you can see but now I am trying to connect to the database via NaviCat but I keep getting the following error: 2013 lost connection to mysql server at 'reading initial communication packet' system error 0.
I configured NaviCat like this (as password I filled in the masterpassword strato provided me)
and this (as password I filled in the masterpassword strato provided me)
Screenshot of the error I am getting:
There is also a page on my hosters site with an tutorial on how to connect to their DB using PuTTy: link to page
Maybe you're wondering why I don't contect the host, it takes ages for them to reply...
What am I doing wrong why cant I connect how can I fix it?
If anyone can help me i would rlly appreciate it!
The manual says the hostname for a database connection should be
rdbms.strato.de
Or has this never been possible? I quote Can not connect to mysql database [strato]:
Connection posibilities(access) depends on your hosting package. But,
actually, remote connections to strato mySQL is not allowed(security
reasons). I have the same trouble with PowerWeb Basic.
The access is probably meant for applications you host with them, not running elsewhere (eg. at home).
If you want to work locally, perhaps they allow you to take a dump of your database that you can install locally? Do they have PHPMyAdmin?

Ms SQL OBDC Driver can't connect to MySQL Server

I set an OBDC Connector on my Microsoft SQL server to set up a linked server to a MySQL database. The driver worked fine, and has always worked, but just recently we upgraded the web server to an SSL connection and everything goes through HTTPS. Since then the OBDC driver has been unable to connect at all. Any help or advice on how to deal with this would be great, thank you.
Turned out the solution was using an IP address to connect to the server instead of the domain name. I was using sql.example.com to connect to the server, but when I changed it to the actual ip ex: 192.168.1.254 it then started working oddly

Connection failed in using mysqlconnector ODBC to connect from sql to access

I am trying to connect mysql database in phpmyadmin to the access file. I am using mysqlconnector ODBC for that. Tutorial I am following is this
The problem is that when I give the credentials to connect to database, it gives me error as shown in this snapshot
I have tried hard to search on internet but failed. What mistake I am doing. I am putting the ftp information of the server there. Is there any database credentials i need to put?
You can't use the FTP credentials to connect the MySQL database. You have to use the database credentials. Make sure you have done followings before connecting.
Make sure MySQL server is up and running on the HOST IP and PORT.
Your MySQL server can accept connections from your IP or use % for
all IPS
Make sure you have a valid USER account
EDIT
Or tell us where(local server, internet, IP) the MySQL database is installed. The port number the server is listening on. How you access MySQL server normally.

JDBC connection issue ubuntu and PHP Storm

Im trying to connect to the database using DB navigator in PHP Storm.
I can already connect to my database which is a VPS on digitalocean with php and PDO using localhost as the host and the username and password setup through PHPmyadmin. I don't understand why that works since my database is stored on Digital Oceans VPS but it works, i can write to and from the database no problem and access my database at www.mywebsite/phpadmin
normally when localhosts works it means i have LAMP installed on my local machine but i don't and when i worked previously with shared hosting for another site the host was the ip address.
Anyway i didn't worry about it since it works for my PHP connection but now im trying to use DB navigator with PHPstorm and it needs to setup the database connection. since im using the same username and password that works for php connection to the database i assume that is correct.
I have installed the driver library and selected the .com.mysql.jdbc.Driver as the driver.
for URL which i assume must be host i have tried the following:
pretend droplet ip = 123.456.789
pretend website is: www.mywebsite.com
jdbc:mysql://localhost:3306
jdbc:mysql://123.456.789:3306
jdbc:mysql://mywebsite.com:3306
jdbc:mysql://www.mywebsite.com:3306
None of these work and all say no packets received. I also tried with the data source option in php designer with the same results. Anyone know what the correct connection string is, maybe i have the string structured wrong, im new to ubuntu and these VPS systems, i have ssh access also if that matters?