Phpmyadmin connection issue with mysql database on local computer
Got mysql and phpmyadmin installed on my iMac. I open phpmyadmin site in safari and try to login to the database and I get the following error:
"Safari can’t open the page “http://imac.local/phpMyAdmin/index.php?lang=en-utf-8&token=872752b265e4d375dddae b18d06bd85b” because the server unexpectedly dropped the connection, which sometimes occurs when the server is busy. You might be able to open the page later."
I can connect to the sql database okay from the mysql manager gui just fine. Any suggestions?
Hi David-
Thank you for your QUICK and CORRECT reply! Yes, creating the _mmServerScripts folder in my SSL folder on my remote server did the trick!!
I did try to setup a testing server using one of your tutorials, but I received FTP errors. Since I have a working website with remote and testing flagged on the same server and for my ease of understanding, I copied the setup as closely as I could (less the SSL add-on). Mind you, I originally setup that website 3 years ago, so I'm a bit rusty. I'm not a web developer and don't do this for a living, thus I get by with instructions from the books I own, web tutorials, Adobe forums, etc., but I have not taken any classes. It's not my choice to work with PHP, but I have to in order to pull data from database tables into my web pages. Since I don't do this for paying customers, I don't have to setup anything too fancy (thank goodness). I would like to know how to debug and write java script code, but I lack the time and patience (mostly patience).
Besides...Adobe does such a good job with their products, that I can get by pretty well without having to know everything.
Again, THANK YOU!!!
PS- Would you mind replacing my root site info above with the following: www.sitename.com/ssl/
Similar Messages
-
Oracle Discoverer 4i (portal db - oracle 8i) connectivity issue with 11g database
Hi All
We have oracle discoverer 4i with portal db (oracle 8i).
We connect to the external databases using db links in the portal db and the reports will use the db link to retrieve the data from views in the external databases.
External databases we were connecting is oracle 10g version and now we have upgraded these databases to 11g version.
Now i have a created a new db link to this 11g database and i have created a new EUL in portal to connect to this 11g database.
But when i try to create a report using the discoverer from this new EUL after login to the discoverer we get a "cannot connect to database" error.
We have all the necesscary privilege to the user and the new database link works perfectly fine. (when we try to query directly using SQL plus from portal database using this db link the query works perfectly fine).
Im not sure if this is a compatibility issue in connecting from oracle disc 4i to a 11g database.
Can any one advise if this is the case and if there is any workaround for this?
Regards,
RajAre you saying you are having issues with a database link between 8i and 11g (pl post exact versions to 4 digits) ? If so, it should be expected as database links between these two versions are not supported. Is there a reason you cannot upgrade the portal database to at least 10gR2 ?
See MOS Doc 207303.1
HTH
Srini -
How to connect JSP with MySql Database?
HI All...
I want to know or How to connect Mysql with JSP or JSF any other software is available? please help me.....I want to know or How to connect Mysql
with JSP or JSF any other software isavailable?
please help me.....First you need to find 25 m of a CatV cable and...The DB files need to be located on the ninth device of a SCSI Daisy Chain with the total SCSI cable length being over 150 m (and the devices (and cables) need to be mix of Differential and Non-Differential).
Edit: And forget the terminator, who needs it? -
Connect to a mysql database with Oracle 9i
Hello,
how can I connect to a non_oracle-database in "Oracle 9i".
I created a ODBC data source. In Oracle8 I needed OCA. But in 9i I believe the OCA is replaced by another thing.
I wanted to connect in SQL*PLUS with:
username/password@odbc:mysql
But I get the error: ora-03121 "no interface driver connected - function not performed".
How can I connect to another database?I've solved the DW problem by changing the site folders from
'db' to 'wwwroot' e.g. 'C:\CFusionMX\db\' is now
'C:\CFusionMX\wwwroot\
However I'm now back to my original problem. I've lost my
mqysql connection in CF Adminstrator. Before I made these changes I
could connect to my mysql databases using the following settings:
JDBC URL: jdbc:mysql://localhost:3306/test
Driver Name: MySQL Connector J
using the following Java path and file:
C:\CFusionMX\wwwroot\WEB-INF\lib\mysql-connector-java-3.0.17-ga-bin.jar
Now these settings give me the following error:
"Connection verification failed for data source: javaserver
[]java.sql.SQLException: SQLException occurred in JDBCPool
while attempting to connect, please check your username, password,
URL, and other connectivity info.
The root cause was that: java.sql.SQLException: SQLException
occurred in JDBCPool while attempting to connect, please check your
username, password, URL, and other connectivity info"
Any suggestions on this would also be welcome.
Thanks again to everyone for their help.
Sincerely,
Graham A. Kerby -
How to connect APEX with MYSQL via Apex's Database link
How do i connect APEX with MYSQL via Apex's Database link? The OBE doesn't go into specific detail about how to link the two.
can someone please elaborate on what these are and where i can find them in mysql:
Database Link Name
Connect To Schema
Password
Remote Hostname or IP
Remote Host Port
SID or Service Name
I need to link to mysql database so I can set up a 3D pie chart in apexHi jononioo
A database link is a device for connecting between Oracle database instances only. Oracle does have a method for connecting to other database systems (Transparent Gateway) but this is restricted to other commercial databases and I don't believe there is a gateway for Mysql. (I could be wrong)
I don't know Mysql but maybe there is some way to push data to the Oracle instance. Other than that, is there any reason why the data has to reside in the Mysql database?
Regards
Andre -
Connection pool issues with Mysql
Hi,
I have defined sufficient read connections (50) in the toplink configuration, I am finding toplink is not releasing the connections in Mysql, this is when run from Jboss App server.
Is anyone aware of toplink connection pool issues with MySql?
thanksTopLink always closes connections, I cannot see how this could occur.
Please include your persistence.xml or sessions.xml. Also ensure you are closing your EntityManager or ClientSession, especially if using exclusive connections.
Also include the exception you are getting.
James : http://www.eclipselink.org -
Connecting to a Mysql database using a ColdFusion server
can't create a mysql datasource in CF Administrator.
If I use the following datasource settings in CF
Administrator:
JDBC URL: jdbc:mysql://localhost:3306/test
Drive Class: MySQL Connector J
AND (note the emphasis) I set my local and remote folders in
my DW site local folder, remote folder and testing server folders
all to C:\CFusionMX\db\, I can connect to my mysql database in CF
Administrator.
However, with these DW site folder settings, DW doesn't
recognize any databases (Access or Mysql) at all.
When I change my DW site folder settings to 'wwwroot'
(e.g.local folder C:\CFusionMX\db\' is changed to
'C:\CFusionMX\wwwroot') DW now lists all my CF Administrator
databases.
The problem is CF Administrator can't connect to my Mysql
data sources. It gives me the error:
"Connection verification failed for data source: javaserver
[]java.sql.SQLException: SQLException occurred in JDBCPool
while attempting to connect, please check your username, password,
URL, and other connectivity info.
The root cause was that: java.sql.SQLException: SQLException
occurred in JDBCPool while attempting to connect, please check your
username, password, URL, and other connectivity info"
I've tried changing the 3306 port to 8500, but this doesn't
help.
My java path and connector file is:
C:\CFusionMX\wwwroot\WEB-INF\lib\mysql-connector-java-3.0.17-ga-bin.jar,
Is this a ID/password problem? I've tried both 'root' and
leaving the ID field in the CF Administrator add data source block,
both to no avail. I don't have a password set in Mysql for 'root'
either.
Any help would be gratefully appreciated. I've been working
on this for weeks and keep running into one problem after another.
Thanks a million in advance.
Sincerely,
Graham A. KerbyIf it were me I would use the MySQL JDBC driver and not ODBC. Then DSN versus not-DSN wouldn't be an issue.
-
Connecting to a Mysql database using CF Administrator and DW
I can't create a mysql datasource in CF Administrator.
If I use the following datasource settings in CF
Administrator:
JDBC URL: jdbc:mysql://localhost:3306/test
Drive Class: MySQL Connector J
AND (note the emphasis) I set my local and remote folders in
my DW site local folder, remote folder and testing server folders
all to C:\CFusionMX\db\, I can connect to my mysql database in CF
Administrator.
However, with these DW site folder settings, DW doesn't
recognize any databases (Access or Mysql) at all.
When I change my DW site folder settings to 'wwwroot'
(e.g.local folder C:\CFusionMX\db\' is changed to
'C:\CFusionMX\wwwroot') DW now lists all my CF Administrator
databases.
The problem is CF Administrator can't connect to my Mysql
data sources. It gives me the error:
"Connection verification failed for data source: javaserver
[]java.sql.SQLException: SQLException occurred in JDBCPool
while attempting to connect, please check your username, password,
URL, and other connectivity info.
The root cause was that: java.sql.SQLException: SQLException
occurred in JDBCPool while attempting to connect, please check your
username, password, URL, and other connectivity info"
I've tried changing the 3306 port to 8500, but this doesn't
help.
My java path and connector file is:
C:\CFusionMX\wwwroot\WEB-INF\lib\mysql-connector-java-3.0.17-ga-bin.jar,
Is this a ID/password problem? I've tried both 'root' and
leaving the ID field in the CF Administrator add data source block,
both to no avail. I don't have a password set in Mysql for 'root'
either.
Any help would be gratefully appreciated. I've been working
on this for weeks and keep running into one problem after another.
Thanks a million in advance.
Sincerely,
Graham A. Kerby1) ensure mysql server is running
2) there are numerous tutorials for mysql installation out
there
3) there are good free mysql admin tools out there
4) use both the above to verify your mysql installation is
correct
5) please tell me you do have your zonealarm DISABLED
hth
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com -
Connecting AIR with external database
Is it possible to connect AIR application to the external database in MySQL technology?
Are you trying to connect to a MySQL database on a web server somewhere? If so, by far the easiest way to do so is to use some sort of application server layer (e.g. PHP, ColdFusion, Java) on the web server, and have the AIR application call the PHP (or whatever) code to get the data. That is the approach that all the links Greg has given you are talking about.
Of course, in order to make that work you need to know enough PHP/Java/ColdFusion to write that middle layer. In the example you're asking about, the information it wants to know is the name of the server that the MySQL database is running on, and the MySQL username and password for the MySQL account that your PHP code is supposed to use. There are tons of resources on the web for writing PHP code that accesses MySQL, so you'll find much more and better information in other places than what you'll find in the Adobe AIR forums.
However, maybe you want to have the MySQL server running directly on the user's computer rather than on a web server somewhere. In that case you would have a few options:
Run a web server and application server (e.g. Apache and PHP) on the user's computer and use those to connect between the AIR application and the MySQL server.
Write Java code to communicate between the MySQL server and the AIR app, and call that code using Merapi (http://merapiproject.net/)
Run the MySQL server on the user's computer and call the server directly from AIR using ActionScript. While there is no built-in support for MySQL in AIR, there is a third-party (open source) library for calling MySQL directly from ActionScript available here: http://code.google.com/p/assql/. I haven't tested it so I have no idea how complete it is, but it's a solution to consider.
However, in all three cases you're depending on some external pieces that have to be installed and loaded separate from your AIR application. (For instance, most users probably don't want a MySQL server running on their computer all the time if they aren't using your AIR app all the time -- so you'd want a way to start and stop the server, which also couldn't be done directly in AIR.) People do write applications that use external resources like this, but it's not the easiest thing to implement.
If you're really wanting to run the database locally, the best solution (assuming it works for your needs) is to use AIR's built in local SQL database engine (based on SQLite). If you've looked at that option already, and found that it doesn't work for you, I'd be interested to know more about what you're trying to accomplish that you can't accomplish with the AIR local database. -
CR2008 connectivity issue with BOE Universes(sap and non sap universes)
Hi Experts !!
Recently we tried to build/connect to a Universe in Crystal Reports2008 via 'Make a new connection tab'.
The universes are of SAP BW or non SAP Lying in BOE Servers and we are trying to build reports on them by conncting/utilizing the universes as a database for Crystal Reporting.
Our issue is most of the time we are not able to connect to the Universes and the connectivity blows out by some 'communication Error' thing initially.
While at some other points in time, the connectivity takes us to the Universe and we are able to select few characteristics and key figures from the Universe but the moment we go futher and try to run by pressing 'OK' button it blows out and say' LOGON FAILED'.
Apparantly, it is an connectivity issue with BOE server and from the different blogs it looks like it is a known issue for long.
The proposed issue resolution were like either CR2008 should be SP2 with BOE SP3 or there should be some additional .dll files defined in the paths in case of MSSQL database. None of this applies to us as we are on CR2008 with SP3 and going back to SP2 is probably not a viable option for us, and we are using Oracle as underlying database in this specific case.( i would like to tell you here that we are able to connect to Oracle Database directly though).
We have raised a message with SAP and was just wondering if we do have some solution/workaround already available to this known issue in place please?
Thanks&Regards.
Edited by: AMIT GHILDYAL on Aug 1, 2011 2:41 PM
Edited by: AMIT GHILDYAL on Aug 1, 2011 2:44 PM
Edited by: AMIT GHILDYAL on Aug 1, 2011 3:14 PMHi Amit,
Moved to Universe Forum.
If you have a case logged then no point posting here also, this is a public site and not a case management tool.
Once you do get the solution from your case please post it here also to help others if they have the same problem.
Thank you
Don -
Can' t connect Java with MySQL
My goal is to connect Java with MySQL. I found many solutions on Internet, but I always get the same mistake:
SQLException: No suitable driver
SQLState: 08001
VendorError: 0MySQL works fine alone or with php.Only thing left me to think is that the installed versions are not compatible for this mysql-connector-java-5.0.4
I don't believe that could be a reason.
Installed versions are:
Apache Tomcat 5.5.20 Server
Apache HTTP Server 2.2.4
PHP 5.2.0
MySQL 5.2
jre 1.5.0_11
jdk1.5.0_11
Apache Tomacat JK2 connector Version: 1.2.20 File Name: mod_jk-apache-2.2.3.so
mysql-connector-java-5.0.4
I also set connector in class path: C:\mysql-connector-java-5.0.4;C:\mysql-connector-java-5.0.4\mysql-connector-java-5.0.4-bin.jar;C:\mysql-connector-java-5.0.4\src\com\mysql\jdbc
For installation I used manulas from:
http://apacheguide.org/jsp.php
http://doc.51windows.net/mysql/?url=/MySQL/ch23s03.html
Here is also a test code in java:
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class Connect
public static void main (String[] args)
Connection conn = null;
try {
conn =
DriverManager.getConnection("jdbc:mysql://localhost/first_test" +
"user=monty&password=greatsqldb");
// Do something with the Connection
} catch (SQLException ex) {
// handle any errors
System.out.println("SQLException: " + ex.getMessage());
System.out.println("SQLState: " + ex.getSQLState());
System.out.println("VendorError: " + ex.getErrorCode());
}i'm desperate, please help or tell me someone who'll know the answer.
Thank You in advancehey buddy .. it seems yr code is wrong .. in getconnection () method u should also specify the port ,which u r not doing ...
the default port for MySQL is 3306 ... see below i am giving you a sample code ... its working fine .. and dont forget to put the MySQL driver jar path in to classpath and also copy the jar into common/lib folder of your tomcat ....
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
public class MySQLConnectionTest {
public static void main(String[] args) {
new MySQLConnectionTest().connTest();
public void connTest() {
String tableName = "portfolio"; //change as per setting
String hostName = "10.81.9.39"; // please change for the target database ip or hostname
String dbPort = "3306"; //change if not using the default
String dbName = "tradingsystem"; //change as per the given DB name
String username = "root"; //change as per setting
String password = "password"; //change as per setting
System.out.println("before try");
Double data=0.0;
Double data1=0.0;
try {
Class.forName("org.gjt.mm.mysql.Driver");
System.out.println("before driver manager");
Connection conn = DriverManager.getConnection("jdbc:mysql://"+hostName+":"+dbPort+"/"+dbName, username, password);
String query1 = "select * from "+tableName+" where User_id='trader1' and Stock_Type='Equity'";
System.out.println("quesry1="+query1);
Statement stmt = conn.createStatement();
ResultSet rs1 = stmt.executeQuery(query1);
while(rs1.next())
System.out.println("hiiiiii for rs1");
System.out.println(rs1);
Quantity=(Integer)rs1.getObject(5);
MarketPrice=(Double) rs1.getObject(8);
data=Quantity*MarketPrice;
data1+=data;
System.out.println("data1="+data1);
i=0;
rs1.close();
stmt.close();
conn.close();
} catch (ClassNotFoundException e) {
e.printStackTrace(System.err);
} catch (SQLException e) {
e.printStackTrace(System.err);
i hope it will work for u...
cheers, -
Issue with changing database location at runtime
I am having a similar issue to:
Re: Issue with changing database location at runtime
where I am using Crystal Reports 2008 SP 3 fix pack 3.3 and a OLE DB connection to a SQL 2008 R2 server. Running on a computer on the network where the report can see the original development server is fast, other computers where that server is not available are hanging 20 seconds before coming up.
I am using the same code from the Crystal Sample app to change the connection on each table. I found that the slowness comes the first time the ReportDocument object is accessed to get the collection of database tables, before the connection info is set.
Fix pack 3.4 was mentioned in that post. Does fix pack 3.4 fix that issue? I don't see fix pack 3.4 on the downloads page (https://websmp130.sap-ag.de/sap%28bD1lbiZjPTAwMQ==%29/bc/bsp/spn/bobj_download/main.htm)I just found on the reports that were having the issue there was a SQL Expression. Per this thread:
Re: Report load is slow after changing database servers
There was an issue with that and the fix is not out til the end of Feb so I found a way not to use the SQL Expression and the speed is much better.
However, your information provided led me to this post:
Cannot Change Table Location, but Only for One Report
And I am also experiencing an issue where the table location is not changing on one subreport and I will look into that as a possible solution.
Thanks so much for your help. -
Hi
Can any one tell me how should i connect my java application with mySql database here is the small code which i written.
import java.sql.*;
class tryjdbc
public static void main(String[] args) throws Exception
try
Class.forName("com.mysql.jdbc.Driver").newInstance();
String connectionURL = "jdbc:mysql://localhost:3306/learn?user=root;password=";
Connection connection = DriverManager.getConnection(connectionURL, "root", "");
Statement statement = connection.createStatement();
ResultSet rs = statement.executeQuery("Select ecode from emp");
while (rs.next())
System.out.println(rs.getString("ecode"));
catch (Exception e){
System.out.println(e);
Can any one please tell me the error there is no eror in compiling but at run time it gives error
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
Thanks in advance
DhirajHi Dhiraj,
String connectionURL = "jdbc:mysql://localhost:3306/learn?user=root;password=";
Connection connection = DriverManager.getConnection(connectionURL, "root", "");
It seems to be your trying to pass twice of your properties details. One from through URL and another from by pasing the parameters on getConnection() method. Better to avoid to use two place in same application. and one more thing I want to confirm r u using "stable" Driver or "alpha" Driver.
Raju -
SQL Developer connection issue with JDBC
Hi skutz & friends,
I have problem with Oracle SQL Developer I can not connect to any oracle db
because Status : Failure -Error loading native JDBC driver library.
However, I download SQL developer [ Oracle SQL Developer for Windows (JDK1.5.0_06 is bundled in this zip) ]
After it is not working. Also I download JDK 5.0 Update 14
The Java SE Development Kit (JDK) to install it on my PC again.
But it does not work. My install path information:
install path as C:\Program Files\SQLDEVELOPER_INSTAL\sqldeveloper
local oracle as !0g 10201
SQL version as sqldeveloper-1.2.1.3213 which download last versionfrom OTN on 2/18/2008.
for connection, taken basic.
port as default 1521
hostname and saver name are same.
I created a environment variable in window xp.
SQLDEVELOPER_USER_DIR AS C:\Program Files\SQLDEVELOPER_INSTAL\sqldeveloper
can anybody help me with this connection?
thanks
JimmyDuplicate thread: Please enter all responses on other thread: SQL seveloper connection issue with JDBC
-
PHP Connection to a MySQL database "An unidentified err has occurred"
This is driving me up the wall.... With my hosting provider
at work I cannot make a connection to a MySQL database with
dreamweaver using the new connection in the databases tab. "an
unidentified error has occurred"
I am certain that I am entering the info correctly and have
the correct permissions to access the database, I think it has to
do with the _mmServerScripts folder and the testing server.
With the hosting provider that I use for personal websites I
make connections all day long doing the exact same thing that I am
doing here at work and I'm stumped. I even read a lenghty article
on this forum with possible solutions... none of them worked.
Is there any way around the _mmServerScripts directory and
testing server to make a connection and then use the bindings and
server behaviors tabs to creat recordsets, etc??
Thanks in advance for any help!
Georgeo0knightro wrote:
> Is there any way around the _mmServerScripts directory
and testing server to
> make a connection and then use the bindings and server
behaviors tabs to creat
> recordsets, etc??
Not if you want to use Dreamweaver server behaviors, no. The
usual
meaning of "an unidentified error has occurred" is failure to
connect
because communication is blocked by a firewall.
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
Maybe you are looking for
-
I can't get my registered versions of CS6 Photoshop and Illustrator to run in full mode. I installed CS6 Design Standard online end of June (an upgrade from CS5.5), on my old MacBook Pro. I didn't run the programs then as I was waiting on arrival of
-
How can I get a white background?
Dowloaded trial version of 5 for Windows at work.....found Control L takes you to eyedropper that is white. Cool... NOW: Have a MAC at home. Bought 4 today and I cannot find the above feature. How can I (easily) get the eye dropper to be white not gr
-
Hi, I'm inserting new values in a table that has as primary key a "long" field. To create a unique value I usually get the value with System.currentTimeMillis(), the problem is that I'm running a data migration program and sometimes the value I get i
-
Displaying SQL results in Web Pages from non-native DBs?
How do developers process the results from SQL queries fron non-narive DBs? If Spry Data sets are the best approach do I save the query as a .htnl file with the results formatted as an HTMLDataset or do I save the SQL query as an XML file? What ot
-
Using stylesheets in Java Studio Creator
I have a project in which I have to use a given stylesheet with css entries for <h1>, <2> and so on. How can I embed such a css? How can I ensure that all these headers are always displayed the correct way?