I have a mysql database on my pc , what should i send someone to access it :S? A connection string or a live link .Is it possible?
Thank you
This worked perfectly for me. You're essentially giving them access to a separate installation of phpmyadmin that provides them access to any of the databases on your server via their separate database login credentials
Is your computer available to others through the Internet, or does your ISP block access through port 80 (HTTP)? If the other person can access a web server on your computer that person could admin your mySQL database through phpMyAdmin?
If the other person knows how to use a terminal to perform sql-tasks I guess you could grant this person permission (see: http://dev.mysql.com/doc/refman/5.1/en/adding-users.html).
Related
I would like to manage my database with https://www.phpmyadmin.co. But it doesn't want to bind. After like 20 Seconds there comes an errror.
error picture
I can use it for my minecraft plugins with localhost. Here are my setup commands:
CREATE DATABASE data;
CREATE USER 'myuser'#localhost IDENTIFIED BY 'userpsw432';
GRANT ALL PRIVILEGES ON data.* TO 'myuser'#localhost;
I think it has something to do with #localhost but I'm not that familiar with linux yet.
Thanks for helping!
That phpmyadmin.co thing is a web service, running on some server on the net someplace, that connects to its users' databases and serves as a phpmyadmin database client.
To use it your database must be on the network and not firewalled, and you must give it your machine's public internet address.
localhost isn't a public address, though. I suspect your localhost database server is not accessible that way.
You probably need some substitute for phpmyadmin that you can run locally. HeidiSql? MySql Workbench? SquirrelSQL?
I have the following information to a SQL database
Server : MyUserName.mysql.db
User : MyUserName
Password : MyPassWord
I am a little noob in this context, so I have some questions:
How to know where is hosted my database? Is it in mysql domain? (Isn't that the type of database?)
How can I access it and visualize it?
To begin with, you need a CLIENT to be able to access your database. For MySQL, you can use either Workbench or MySQL CLIENT (the last giving you command-line level access).
Second, and according to your information, the server is MyUserName.mysql.db so if you try to PING that server you should get some response.
Third, MySQL has a default port number so you need to configure your client to access that server though that port (if I'm not mistaking, 3306).
You will also need access credentials to your database.
Your DB administrator should be able to provide all the information you need.
Contact your database administrator.
If you're trying to acess/visualize sql server database on your local computer install ssms to connect to your local database , similarly you can access any other database through ssms.
i am beginner in databases and Xcode programming.
i am now installed mysql database, phpmyadmin and Seguel pro for testing.
i created new database and table with phpmyadmin. with segue pro i am connected to database and everything works.
now, i want to connect to this database to read all data to nsarray to show them in tableview. my host is 127.0.0.1, username is "ssebastijan", password is "password", database name is "sebastijan", table name is "test" and port is 3306.
can somebody post code for connection, or explain me how to connect. i already trying two days goggling, but i can't find answer.
thank you!
Greetings from Croatia. Sebastijan Sakač
I don't think it is a good idea accessing the database directly. Using a web service (REST) on the server and accessing the web service from the iOS client is not only common but highly recommended. You can, however, access mysql diretly as you would do in any plain C program. Here is an expample. http://blog.iosplace.com/?p=30
I am trying to connect to MySql db using VS2010. I added my ip address in cpanel allow hosts. I also grabbed the IP address for the server where the database is hosted which is just my website.
So I go to server explorer, right click database connections and clicked on add a connection
I select .NET Framework Data Provider for MySQL for Data Source
for Sever Name I typed the IP address for my website where the Database is
Typed in the user name and password who has all the privileges, and entered the Database Name too.
When I hit test connection I always getting "Unable to connect to any of the specified hosts"
any advice is appreciated
Thanks
So, in order to connect to a MySql database from VS2010 see the link bellow:
http://www.itcsolutions.eu/2010/09/09/how-to-connect-to-mysql-database-from-visual-studio-vs2010-problems-with-net-connectors/
Have you tried adding % as your access host under Manage Remote MySQL Access of your Cpanel?
Try this
http://zambalestechrealm.wordpress.com/2012/03/08/vb-net-remote-access-to-mysql-database-of-my-website-2/
It says
Goto Your site Cpanel, and look for MySQL remote access, in my case i put % in the list of user to access remotely to my database. ‘%’ percent means to allow all connection to connect to my MySQL database.
I'm making a winforms app in vb.net that connects to a mysql database on my webserver to read and write data, this all works fine.
But i have to allow the users ip to remote connect to the database.
Is it possible to give everyone access to the database? The user account will not have all rights an the data isn't very important if it got lost.
The user account and connection details are hard coded.
I know this isnt secure but that doesnt really matter.
Yes, that's very well possible. In your mysql privileges table you'll have to grant a wildcard (%) host access to the user. Then in your VB.NET code simply use the address in the connectionString.
Yes, you can GRANT permissions on the database to the same user with wildcards in the host. More information here.
You can specify wildcards in the host name. For example, user_name#'%.example.com' applies to user_name for any host in the example.com domain, and user_name#'192.168.1.%' applies to user_name for any host in the 192.168.1 class C subnet.
The simple form user_name is a synonym for user_name#'%'.
That way every application connects to the database from random hosts and uses the same username/password in the connection string to authenticate, and MySQL will allow it because the host part of the permissions isn't explicitly specified.
But i have to allow the users ip to remote connect to the database.
Why?
Two other options:
1 - Expose the data as a web service. It's already on the web server...
2 - Build a web app instead of a desktop app.