I can use mysql trigger to same server and same host. Can I trigger in to different host. Is there any other method to do that.
Localhost -> 10.1.2.220
MySQL Triggers are possible to used on same hosted site. Definer of the trigger can be changes as you wish but difficult to handle with remote host.
Using of PHP SOAP client and Server is suitable to prevent your issue.
I haven't tried it myself, but take a look at the FEDERATED storage engine for MySQL http://dev.mysql.com/doc/refman/5.6/en/federated-storage-engine.html
Related
I cannot reach my MySQL Database instance I created on AWS.
What I tried was to set the public access of the Database to "Publicly accessible" here:
Also I tried to set Inbound/Outbound rules for the MySQL port here:
Honestly I think using "All" ports would include 3306 too. Anyways, I tried it this way because yet it didn't work. I cannot connect to the database via MySQL Workbench, nor can I use a ping request on the given endpoint.
I would be glad if someone here has an idea what I could try else.
This will not work if you have deployed it in a private subnet which has no internet access.
Another possibility is that there is ACLs that is stopping the traffic. Security group only touch the RDS instance, the ACLs control traffic in the entire subnet.
Here is a dev AWS tutorial that creates a web application that stores data in MySQL running on the cloud. It will show you how to setup the database and the inbound rules. Once you do, you can store data or query data from MySQL. Likewise, you can use MySQL Workbench to interact with MySQL on the cloud.
AWS RDS Tutorial
We are monitoring the performance of a stored procedure for experimental purpose.
This stored procedure read a single table and updates 5 table. While monitoring, I was expecting it to use network traffic. But to my surprise there were no network traffic.
The SQL developer is on my local machine. My assumption is it would use client service to connect to database and run the stored procedure on the database.
Kindly confirm my understanding and provide additional details.
Thanks.
Two things to consider...
You mentioned that SQL Developer is on your local machine. Is the database there too?
SQL Server by default uses port 1433. Are you watching that port?
As commented below, If you're using Oracle, check port 1521.
If you are using Oracle and TNS, check tnsnames.ora file to see if a port is specified there.
Currently I have phpMyAdmin and MySQL installed on my server. I now want to provide access to phpMyAdmin to a friend of mine so he can setup his own databases and users, however I don't want him to be able to see or modify my databases.
Is this possible to do with a simple privilege account or do I require some kind of MySQL virtualization? I know cPanel installations provide this feature for web hosts, but I don't need or can afford cPanel at the moment.
You should look into MySQL Security Here specifically section 13.7.1.3 Grant statement. You could secure your DB from your friend logging in which will prevent him from seeing anything in that DB on PHPMyAdmin. Or you could create a DB for him to use and allow him access to that DB only.
You never mentioned if he will be on Localhost or will you need to open up MySQL for remote logins from other than Localhost which is the default behavior..
I tried to create a deterministic, MySQL data read function in my database on a shared hosting in GoDaddy (Linux). But while creating the function I got the following error.
#1419 - You do not have the SUPER privilege and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable)
I have contacted GoDaddy Tech Support and they mentioned that I need Super User privilege to do this and they won't be able to grant that to me on a shared hosting. So I am planning to move everything to Amazon Web Services.
Before I do, does anyone know if Amazon RDS will allow the creation of this MySQL function or is there any possibility I can run into the same problems there as well? I had run into the same problem creating DB Triggers on Godaddy as well and worked around using Stored Procedure.
Thanks for your help.
Yes I know for a fact that you can change the log_bin_trust_function_creators parameter in Amazon RDS.
RDS has a thing called parameter groups. If you want to change a setting, you create a new parameter group, change the parameters you want (in this case, set log_bin_trust_function_creators to 1) and then launch an instance (or modify an already launched instance) and set the instance's parameter group to the one you just created.
Hope this helps.
I'm using HeidiSQL ( http://www.heidisql.com/ ) to manage my databases at work (I prefer this over phpMyAdmin).
Now, I want to use HeidiSQL with my personnal host plan, but when I connect to MySQL with my host, I connect with "localhost" in PHP but at work, I connect to databases with something like "supersqlserver.foo.net"...
Is there a way to connect to my hosted database with HeidiSQL? Is it common practice with hosts to allow the use of software like this?
BTW, the host where I want HeidiSQL to work is HostGator.
When you can't connect to the MySQL server directly, for example a firewall blocks the access from all network protocols, except HTTP protocol, you can use HTTP tunneling.
Here an example of connecting to MySQl through Httptunnel using HeidiSQL.
Ask your HostGator support. They should be able to help you. Maybe they only listen on localhost, and then you can't connect from the outside. It's rather common to not listen for external MySQL connections due to security policies, but some hosts allow it.