Mysql  connect error

Hi
I'm using CS4 DW with all the updates. I can log onto my local mysql database but when I setup for the one on my remote webserver
I get the following error
MySql Error 2000
mysqlind cannot connect to MYSQL4.1 using old authentication
This seems to be a standard error, is there a fix or am I missing something?
thanks
Ian

hello sir, am isaac from u
ganda i also wanted to upload an im
ge in mysql database but i failed until igot on your tutorial about
Upload images to a MySQL database (PHP)
and i tried to use it but it seems i wasnet connecting to the server please help and correct this Error. for now am using "localhost" where i need to specify the "pass" and "User" but i don't understand this systax you used here
please help me
<?php define ('MAX_FILE_SIZE', 1024 * 50); ?>
<?php require_once('Connections/testConn.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
  if (PHP_VERSION < 6) {
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;   
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double": 
      $theValue = ($theValue != "") ? doubleval($theValue) : "NULL"; 
      break; 
    case "date": 
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; 
      break; 
    case "defined": 
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue; 
      break; 
  return $theValue; 
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
  $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "uploadImage")) {
  // make sure it's a genuine file upload
  if (is_uploaded_file($_FILES['image']['tmp_name'])) {
    // replace any spaces in original filename with underscores
    $filename = str_replace(' ', '_', $_FILES['image']['name']);
    // get the MIME type
    $mimetype = $_FILES['image']['type'];
    if ($mimetype == 'image/pjpeg') {
        $mimetype= 'image/jpeg';
    // create an array of permitted MIME types
    $permitted = array('image/gif', 'image/jpeg', 'image/png');
    // upload if file is OK
    if (in_array($mimetype, $permitted)
        && $_FILES['image']['size'] > 0
        && $_FILES['image']['size'] <= MAX_FILE_SIZE) {
      switch ($_FILES['image']['error']) {
        case 0:
          // get the file contents
          $image = file_get_contents($_FILES['image']['tmp_name']);
          // get the width and height
          $size = getimagesize($_FILES['image']['tmp_name']);
          $width = $size[0];
          $height = $size[1]; 
  $insertSQL = sprintf("INSERT INTO iimages (filename, mimetype, caption, image, width, height) VALUES (%s, %s, %s, %s, %s, %s)",
                       GetSQLValueString($filename, "text"),
                       GetSQLValueString($mimetype, "text"),
                       GetSQLValueString($_POST['caption'], "text"),
                       GetSQLValueString($image, "text"),
                       GetSQLValueString($width, "int"),
                       GetSQLValueString($height, "int")); 
  mysql_select_db($database_name, $db_name);
  $Result1 = mysql_query($insertSQL, $db_name) or die(mysql_error());
          if ($Result1) {
            $result = "$filename uploaded successfully.";
          } else {
            $result = "Error uploading $filename. Please try again.";
          break;
        case 3:
        case 6:
        case 7:
        case 8:
          $result = "Error uploading $filename. Please try again.";
          break;
        case 4:
          $result = "You didn't select a file to be uploaded.";
    } else {
      $result = "$filename is either too big or not an image.";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>File upload to database</title>
</head> 
<body>
<?php
// if the form has been submitted, display result
if (isset($result)) {
  echo "<p><strong>$result</strong></p>";
?>
<form action="<?php echo $editFormAction; ?>" method="POST" enctype="multipart/form-data" name="uploadImage" id="uploadImage">
    <p>
        <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo MAX_FILE_SIZE; ?>" />
        <label for="image">Upload image:</label>
        <input type="file" name="image" id="image" />
    </p>
    <p>
      <label for="caption">Caption:</label>
      <input type="text" name="caption" id="caption" />
    </p>
    <p>
        <input type="submit" name="upload" id="upload" value="Upload" />
    </p>
    <input type="hidden" name="MM_insert" value="uploadImage" />
</form>
</body>
</html>

Similar Messages

  • Mysql connections error needing flush

    Connected SQL Developer to a mysql database which worked OK. Used latest mysql connector and added it to prefs.
    Problem is that after awhile SQLDeveloper comes back that mysql has too many connection errors and I should use "mysqladmin flush-hosts". The errors are related to my sqldeveloper as other applicatinos continue to access the db ok.
    I was careful to connect and disconnect in sqldeveloper but this still happens.
    I know I can increase the connection count, etc. in mysql but I'm thinking that just extends any problem.
    Any ideas ? thanks

    Hi Steverar,
    I have got this occasioanly with mysql
    "mysqladmin flush-hosts".
    I ran the command on the mysql test box. I have not investigated it as a SQLDevelloper problem - I thought it was a mysql admin command.
    -Turloch
    SQLDeveloper forum.

  • MySQL connection error

    Dear Fellow Java Developers:
    I am a junior java developer and I sincerely apologize for my ignorance. I have searched the archives of this forum for advice and information, and for some reason I am not able to get the results I desire.
    I have the following line in my classpath:
    C:\mysql\java\mysql-connector-java-2.0.14-bin.jar;.
    now when I run the following program which I got of the following url:
    http://www.javacoding.net/articles/technical/java-mysql.html?page=1#contentAnchor
    /* import needed for JDBC access */
    import java.sql.*;
    * MySQL Demo Program
    * this program is just a little demonstration of the usage
    * of MySQL in combination with Java JDBC
    * http://www.javacoding.net
    public class TestMySQL {
    public void test ( String host, String database ) throws Exception {
    /* first, we'll test whether the MySQL driver is installed */
    testDriver ( );
    /* then, we'll get a connection to the database */
    Connection con = getConnection ( host, database );
    /* we create a table */
    executeUpdate ( con, "create table test (id int not null,text varchar(20))" );
    /* we insert some data */
    executeUpdate(con,"insert into test (id,text) values (1,'first entry')");
    executeUpdate(con,"insert into test (id,text) values (2,'second entry')");
    executeUpdate(con,"insert into test (id,text) values (3,'third entry')");
    /* then we'll fetch this data */
    executeQuery ( con, "select * from test" );
    /* and we'll destroy the table ... */
    executeUpdate ( con, "drop table test" );
    /* finally, we close the database */
    con.close ( );
    * Checks whether the MySQL JDBC Driver is installed
    protected void testDriver ( ) throws Exception {
    try {
    Class.forName ( "org.gjt.mm.mysql.Driver" );
    System.out.println ( "MySQL Driver Found" );
    } catch ( java.lang.ClassNotFoundException e ) {
    System.out.println("MySQL JDBC Driver not found ... ");
    throw ( e );
    * Returns a connection to the MySQL database
    protected Connection getConnection ( String host, String database )
    throws Exception {
    String url = "";
    try {
    url = "jdbc:mysql://" + host + "/" + database;
    Connection con = DriverManager.getConnection(url);
    System.out.println("Connection established to " + url + "...");
    return con;
    } catch ( java.sql.SQLException e ) {
    System.out.println("Connection couldn't be established to " + url);
    throw ( e );
    * This method executes an update statement
    * @param con database connection
    * @param sqlStatement SQL DDL or DML statement to execute
    protected void executeUpdate ( Connection con, String sqlStatement )
    throws Exception { 
    try {
    Statement s = con.createStatement ( );
    s.execute ( sqlStatement );
    s.close ( );
    } catch ( SQLException e ) {
    System.out.println ( "Error executing sql statement" );
    throw ( e );
    * This method executes a select statement and displays the result
    * @param con database connection
    * @param sqlStatement SQL SELECT statement to execute
    protected void executeQuery( Connection con, String sqlStatement )
    throws Exception { 
    try {
    Statement s = con.createStatement ( );
    ResultSet rs = s.executeQuery( sqlStatement );
    while ( rs.next ( ) ) {
    String id = ( rs.getObject ("id").toString() );
    String text = ( rs.getObject ("text").toString() );
    System.out.println ( "found record : " + id + " " + text );
    rs.close ( );
    } catch ( SQLException e ) {
    System.out.println ( "Error executing sql statement" );
    throw ( e );
    * This one is used to start the program.
    public static void main ( String args[] ) throws Exception {
    if ( args.length == 2 ) {
    new TestMySQL ( ).test ( args[0], args[1] );
    } else {
    System.out.println ( "usage: java TestMySQL host database" );
    when I compile and run the program, I still get a java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
    I get the same error when I use the following driver as well
    org.gjt.mm.mysql.Driver
    Does my java program have to be in a certain directory in relation to the mysql directory? All I did at the msql> prompt was to create a database called jtest and typed in
    C:\java TestMySQL localhost jtest
    in order to run the above program.
    Am I overlooking something? Have I forgotten to do something? I am currently using jdk1.3 instead of jdk1.4, is that the problem?? If it is, how do I correct the problem without switching to jdk1.4??
    Any and all help is appreciated, and I sincerely thank all developers who read this post.
    Take care.
    Sincerely;
    Fayyaz

    syedfa,
    I don't know if you have already figured out the problem that you were experiencing, but I was having this same problem, and I finally got it figured out. I was having difficulty on how exactly to set the classpath. I am using Windows XP, and I have seen and tried a lot of different variations. From the command prompt in the directory where the file was saved I finally got your program to compile using:
    java -classpath C:\mysql\mysql-connector-java-2.0.
    14\mysql-connector-java-2.0.14-bin.jar; TestMySQL localhost test
    Of course it would be much easier if the environment variable for this was set so you don't have to type it in everytime at the command prompt, and I finally got that one figured out to. If you are using Windows XP then you can:
    Right click on My Computer and go to Properties.
    Click on Advanced.
    Click on Environment Variables.
    Under System Variables, click on New.
    For the Variable name type: CLASSPATH
    For the Variable Value type: .;C:\mysql\mysql-connector-java-2.0.14\mysql-connector-java-2.0.14-bin.jar
    In the above variable value, the ".;" before C: isn't a typo. The path that I put in is the path to the MySQL JDBC driver on my computer so it may vary on your computer.
    I think this will also work with Windows 2000.
    I hope this helps if you still need it, maybe it will also help somebody else with the same problem.

  • PHP MySQL connect error

    OK
    I get the following error when running my php pages on our
    new web server (Windows Server 2003):
    Fatal error: Call to undefined function mysql_pconnect() in
    c:\Inetpub\wwwroot\jionas_website\Connections\jonas_website.php
    on line 9
    When I open the file jonas_website.php it indicates the
    filename Connection_php_mysql.htm. It is on my local machine in the
    programs folder but not on the web server. Should it be?
    If I run a phpinfo page it runs fine...actually any php
    commands seems to work.
    I also get that "unidentified error" when I try to connect to
    MYSQL through Dreamweaver MX 2004. I have followed all the
    suggestions in the technote for this error. I still get it.
    I can connect to the MYSQL server through MYSQLadministrator
    so I am not sure what is going on.
    Please help.
    Darren

    Hung Kuen Kung Fu wrote:
    > MYSQL is not listed under the phpinfo page. MMM. Not
    sure how to enable this in the php.ini so i will have to look.
    Remove the semicolon from the beginning of these lines in the
    Windows
    extensions section:
    ;extension=php_mbstring.dll
    ;extension=php_mysql.dll
    Also add this line after them:
    extension=php_mysqli.dll
    David Powers
    Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    http://foundationphp.com/

  • Database (MySQL) connection error

    Can someone please tell me what I have to do to either the MySQL database or the code in order for this to work? The app will not connect to the database. The URL is correct, I have pasted the errors. Thanks so much for the help. I know errors arent code but that's the only way I could exceed the 5000 limit.
    init: deps-jar: Compiling 3 source files to C:\Users\pberardi\Documents\901A\IT494\Code Drop\HTTI2.zip\HTTI2\build\classes Note: C:\Users\pberardi\Documents\901A\IT494\Code Drop\HTTI2.zip\HTTI2\src\htti2\RowSorterToStringConverter.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. compile: run: [TopLink Info]: 2009.01.21 01:40:38.221--ServerSession(25488452)--TopLink, version: Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007)) Jan 21, 2009 1:40:38 PM org.jdesktop.application.Application$1 run SEVERE: Application class htti2.HTTI2App failed to launch Local Exception Stack: Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.DatabaseException Internal Exception: java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES) Error Code: 1045         at oracle.toplink.essentials.exceptions.DatabaseException.sqlException(DatabaseException.java:305)         at oracle.toplink.essentials.sessions.DefaultConnector.connect(DefaultConnector.java:102)         at oracle.toplink.essentials.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:184)         at oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.loginAndDetectDatasource(DatabaseSessionImpl.java:582)         at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:280)         at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:229)         at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:93)         at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:126)         at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:120)         at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:91)         at htti2.EmpInfoView.initComponents(EmpInfoView.java:402)         at htti2.EmpInfoView.<init>(EmpInfoView.java:40)         at htti2.HTTI2App.startup(HTTI2App.java:19)         at org.jdesktop.application.Application$1.run(Application.java:171)         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)         at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122) Edited by: pberardi1 on Jan 22, 2009 6:41 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    pberardi1 wrote:
    Internal Exception: java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)
    Error Code: 1045This suggests that you are trying to connect to the database with wrong/no password,
    Try and see if you can connect to your server with a statement like,
    mysql -uroot -p<password>Hope you find more relevant material here

  • MySql connection error message "An unidentified error has occurred"

    I am trying to connect the Mysql database with dreamweaver
    but I keep getting the following error message:
    "An unidentified error has occurred". any idea what is wrong?
    Any help will be appreciated.
    SC Xiou

    SCXiou wrote:
    > I am trying to connect the Mysql database with
    dreamweaver but I keep getting
    > the following error message:
    > "An unidentified error has occurred".
    There are two common reasons for that happening:
    1. An incorrect testing server definition, or
    2. A software firewall is blocking access between MySQL and
    Dreamweaver.
    David Powers
    Adobe Community Expert, Dreamweaver
    http://foundationphp.com

  • CS6, FTP and MySQL Connection ERRORs

    Adobe CS6 Dreamweaver
    I have the latest + updates of CS6 for Mac OS X 10.7.4.latest
    I can FTP, but files are not readable after the upload, on any web hosting provider.
    I have to use a thrid party FTP application (CyberDuck or Trnsmit) to make this happen.
    NOT HAPPY about this £2500 CS6 Master Collection spend not working !!!!
    When I try to connect via MySQL I get this error and failed actions:
    https://dl.dropbox.com/u/5485939/adobe_CS6_dreamweaver_FTP_MySQL/Screen%20Shot%202012-07-1 3%20at%2011.11.57.png
    https://dl.dropbox.com/u/5485939/adobe_CS6_dreamweaver_FTP_MySQL/Screen%20Shot%202012-07-1 3%20at%2011.11.45.png
    https://dl.dropbox.com/u/5485939/adobe_CS6_dreamweaver_FTP_MySQL/Screen%20Shot%202012-07-1 3%20at%2011.11.19.png
    I have checked the folders & content for ...
    _mmServerScripts
    Connections
    are uploaded properly (having to use a third party FTP application, see above).
    I have the correct logins details for FTP and MySQL, as other MySQL Apps (Sequel Pro) have no problem connecting to any web hosting proivdier for MySQL using the exact same login details.
    This is the same on my iMac or my MacBook Pro.

    Hello David, I am having this issue getting errors while trying to get my SQL to connect with the server. I clicked on the link you provided and I get a "you do not have permission to view this" message. Can you please share what ever solution that adobe has with me too.
    I am really really irritated with this issue, as someone else stated this is really inconvenient when I want to get some work done. I am also upset that I bought this software, especially if I cant find a solution.

  • Need help with MySQL connection error _mmServerScripts

    Trying to create insert a recordset I got the message:
    "The files from the _mmServerScripts folder are for the server model PHP-MySQL. You try to connect to a database using a different server model .Please remove this folder outside the Dreamweaver environment on both local and testing machines and try again."
    I've searched the net and have seen this message hunting people since dw8...
    I could not find a "cure".
    Things to notice:
    0 - Yes the whole thing is apache/php/mysql... just DW thinks it's not.
    1 - Both the connection and the Recordset actualy works. I have a whole site based on this connection and the recorsets I've created manualy based on it.
    2 - It does not matter if we erase or not the _mmServerScripts folder the message stands still allover.
    3 - The problem seems to show up when you split servers...
    3.1 - If I test in a WAMP environment where apache and mysql are in the same machine I can use DW to create data objects for me.
    3.2 - If I test in my real test environment which have web server and db server separated from each other then I can't use DW to create data objects, see bindings, behaviours etc... all I get is this message.... while the code itself runs fine anyway.
    Does any one already knows how to work around or fix this?
    Thanks,
    Julio

    Thanks PZ,
    Yes everything is fine with the site definition.
    everything works. I can upload, run, test all ok.
    The only thing that does not work is to insert any sort of data object through DW interface. If I declare my reordsets by hands or even If I use the ones DW created in my local test server all works fine.
    Then if I use the site definition and try to see any bindings or create a recordset or create a new connection using dw... then the messages come up and dw can't go any further in that task.
    By spli servers I mean one phisical linux server with apache/php but without mySQL + one physical Linux server with mySQL but without apache/php.
    So when I use a site definition that points either to a WAMP or LAMP i.e. when everything is in the same machine DW goes happy and does whatever it's asked to do.
    When I try that on the real mccoy environment (with the two separated servers)... It looks like DW gets confused...

  • Getting an error in JDBC mySQL Connection

    Hi,
    I am creating JDBC mySQL Connection error.
    The eror messsage is
    Incorrect name parameter jdbc:mysql://10.114.16.70:3306/kaushikb root,pass in naming operation.where root is the username and pass is the password and kaushikb is the database name.
    I am entering the tablename as: emptable.
    Regards
    Taton
    Edited by: Taton on Dec 11, 2008 3:15 PM

    Let me guess: you did
    getConnection("jdbc:mysql://10.114.16.70:3306/kaushikb root,pass");rather than
    getConnection("jdbc:mysql://10.114.16.70:3306/kaushikb", "root", "pass");

  • Can't connect PHP/MySQL 404 error

    Wow, the learning curve is killing me. Yet another challenge. I'm using Dreamweaver CC and this tutorial http://www.adobe.com/devnet/dreamweaver/articles/setup_php.html
    I'm at this step:
    Open comments.php. You must have a PHP page open in the Document window to create a MySQL connection.
    In the Databases panel (choose Window > Databases), click the Plus button on the panel and select MySQL Connection.The MySQL Connection dialog box appears.
    Type connTest as the connection name.
    For the MySQL Server, type localhost.If you are using the MAMP default ports on a Mac, use localhost:8889.
    For the User Name, type phptestuser.
    Type the password you chose for the phptestuser account in the Password field.
    For the Database, type php_test.Note: You don't need to precede the underscore with a backslash here. It was inserted by phpMyAdmin in the previous section (see Figure 20) only because phpMyAdmin uses a query that permits wildcard characters.
    Click Test.Dreamweaver attempts to connect to the database. If the connection fails, do the following:
    Double-check the server name, user name, and password.
    Check the settings for the folder Dreamweaver uses to process dynamic pages (see Specifying a Testing Server for Dreamweaver).
    Verify that the web and MySQL servers are both running.
    Temporarily disable any firewall or security program. If the connection works, you need to configure the security program to permit communication between Dreamweaver and MySQL.
    Click OK. The new connection appears in the Databases panel.
    Expand the connTest connection, and then expand the Tables branch. You'll see the comments table in the database, which you can expand to reveal the details of the table columns (see Figure 23).
    As far as I can tell I have followed this tutorial to the letter.
    As far as I can tell, XAMPP/php mySQL are all running fine, the files are in the correct place and everything should be working. However when I hit test I get a 404 error. (Same error when I hit the select button.)
    The suggested problems on the 404 message are:
    1. There is no testing server running on the server machine.
    Pretty sure the testing server is running. Is there any way to test this, other than to note that xampp is definitely running right now and that I can log into phpMYadmin no problem?
    2. The testing server specified for this site does not map to the http://localhost/php_test/_MMServerScripts/MMHTTPDB.php URL Verify that the URL Prefix maps to the root of the site.
    Ummm...I'm pretty sure I put things where I was told to put them in the tutorial, but I'm lost at this point where I should verify what. A clue here? The files are where they are supposed to be, but maybe I entered something wrong? Except...I'm not sure what that could be or where to find it. Whatever IT is.
    Everything in local files is looking good.
    Thanks for your help!
    PS: Extra points to anyone who figures out how to make copy/pasteable error messages! These buggers are the bane of my life!

    Bgupta, you rock!
    I hope you have copied the "mysql.php" and "MMHTTPDB.php" files from "C:\Users\username\AppData\Roaming\Adobe\Dreamweaver CC\locale\Configuration\Connections\Scripts\PHP_MySQL\_mmDBScripts" to "C:\xampp\htdocs\phptest\_mmServerScripts"
    This was EXACTLY the problem. I checked the tutorial and I couldn't even find where the tutorial said to do this. (If I missed it, let me know where in the tutorial it was, please.)
    Fixed!

  • MySQL Connection - Select Database - HTTP Error Code 405 Method Not Allowed?

    We've set up a MySQL database with our host and can connect to that, and create, edit, delete tables using HeidiSQL, without a problem.
    However when we attempt to set up the connection in the Databases tab of our Applications panel in Dreamweaver we receive the following error:
    HTTP Error Code 405 Method Not Allowed
    We have entered the following in the MySQL Connection box:
    Name: <name of our connection>
    Server: <IP address of our database>
    Username: <our database username>
    Password: <our database password>
    Database:
    When we click the "Select" option next to the Database field, that's when we receive the above mentioned error.
    We noticed that there was a fix posted by Adobe at:
    http://www.macromedia.com/support/dreamweaver/ts/documents/err405.htm
    ...but that link is long since dead, however it does seem to indicate that Adobe are/were aware of this issue.
    Can anyone help?  We're trying to move from Classic ASP / MSSQL to PHP / MySQL but have hit a barrier right from the off, which isn't very encouraging.  Hope someone can ease our concerns with PHP and MySQL.
    Much appreciated.
    NJ

    Thank you SnakEyez02.
    I had the Testing Server set to Local/Network but didn't have MySQL installed locally.  Changed that setting to FTP and it picked up on the database correctly.
    When using MSSQL it doesn't matter whether you choose Local/Network or FTP it just picks up the online database regardless.  I guess this must just be a difference between it and MySQL.
    Thanks for the advice.  Much appreciated.
    NJ

  • MySQL Error 2002 when attempting to make a MySQL Connection

    I'm trying to make a MySQL Connection and I've got my Staging/Testing Server setup as FTP with the proper host, username and password for FTP, root directory set to '/' (without the quotation marks) and Web URL set to http://www.mysite.com/
    Tested the FTP and it connects.
    For mySQL connection in my bindings, I'm using:
    Connection Name; connRecords
    MySQL Server: localhost
    Username and then my Password for my DB which obviously I won't list here.
    I click Select Database and that's when I get the prompt:
    MySQL Error: #2002
    Can't connect to local MySQL Server through socket '/tmp/mysql.sock' (2)
    What does that mean and how do I get this to work?

    ladobeugm wrote:
    I click Select Database and that's when I get the prompt:
    MySQL Error: #2002
    Can't connect to local MySQL Server through socket '/tmp/mysql.sock' (2)
    What does that mean and how do I get this to work?
    On a Mac, connection to MySQL is done through a socket (mysql.sock). The fact that there's a (2) after mysql.sock indicates there's something wrong with the socket. Usually, you can clear the problem by powering down your computer and then restarting. Don't just do a restart. Make sure the computer switches off completely to clear the socket.

  • Mysql.sock - connection error (code 2002)

    Performed a clean install of SL Server.
    Enabled Web and MySQL services.
    When using GUI (SequelPro of MySQL GUI Tools) I get a mysql.sock connection error.
    "Could not connect to MySQL instance at localhost. Error: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) (code 2002)"
    The database location of MySQL is /var/mysql. Thus a reference to /tmp/mysql.sock is obviously wrong.
    The file /var/mysql/mysql.sock does exist but apparently no reference is made to this file.
    Q: How to make a reference to the correct socket file,
    Coen
    info from Terminal:
    mysql> status
    mysql Ver 14.12 Distrib 5.0.82, for apple-darwin10.0 (i386) using EditLine wrapper
    Connection id: 6
    Current database:
    Current user: s2xladmin@localhost
    SSL: Not in use
    Current pager: stdout
    Using outfile: ''
    Using delimiter: ;
    Server version: 5.0.82-log Source distribution
    Protocol version: 10
    Connection: Localhost via UNIX socket
    Server characterset: latin1
    Db characterset: latin1
    Client characterset: latin1
    Conn. characterset: latin1
    UNIX socket: /var/mysql/mysql.sock
    Uptime: 1 day 3 hours 41 min 7 sec
    Threads: 1 Questions: 12 Slow queries: 0 Opens: 12 Flush tables: 1 Open tables: 6 Queries per second avg: 0.000
    Message was edited by: Coen Jeukens

    It looks looks like the Sequel Pro app is guessing incorrectly that the mysql.sock is in /tmp. If that's the problem, you should be able to fix it by going to Sequel Pro's Connection panel and entering the correct path, which is /var/mysql/mysql.sock.

  • MySQL problem -- ERROR 2002 Can't connect to local MySQL server

    Not Sure if this would be a right forum for my problem...
    I'm installing mySQL on my iBook, and thought that I have configured it. But then, after followring some instuctions from Adobe and Marc Liyanage sites, I have a problem to connect. This is what I've done in "TERMINAL"
    ~username$> cd /usr/local/mysql
    mysql ~username$> sudo chown -R mysql data/
    (asking for admin password)
    mysql ~username$> sudo echo
    mysql ~username$> sudo ./bin/mysqld_safe &
    username-ibook-g4:/usr/local/mysql username$ Starting mysqld daemon with databases from /usr/local/mysql/data
    STOPPING server from pid file /usr/local/mysql/data/roshaili-osmans-ibook-g4.local.pid
    060611 16:31:30 mysqld ended
    mysql ~username> /usr/local/mysql/bin/mysql test
    ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
    [1]+ Done sudo ./bin/mysqld_safe
    mysql ~username>
    When I typed ::
    /usr/local/mysql/bin/mysqladmin -u root
    (see that there's no password)
    Then it displays:
    /usr/local/mysql/bin/mysqladmin Ver 8.41 Distrib 5.0.22, for apple-darwin8.6.0 on powerpc
    Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
    This software comes with ABSOLUTELY NO WARRANTY. This is free software,
    and you are welcome to modify and redistribute it under the GPL license
    Administration program for the mysqld daemon.
    Usage: /usr/local/mysql/bin/mysqladmin [OPTIONS] command command....
    -c, --count=# Number of iterations to make. This works with -i
    (--sleep) only.
    ...... bla bla bla.....
    Variables (--variable-name=value)
    and boolean options {FALSE|TRUE} Value (after reading options)
    count 0
    force FALSE
    compress FALSE
    character-sets-dir (No default value)
    default-character-set (No default value)
    host (No default value)
    port 0
    .........bla bla....
    ping Check if mysqld is alive
    processlist Show list of active threads in server
    reload Reload grant tables
    refresh Flush all tables and close and open logfiles
    shutdown Take server down
    status Gives a short status message from the server
    start-slave Start slave
    stop-slave Stop slave
    variables Prints variables available
    version Get version info from server
    roshaili-osmans-ibook-g4:~ roshailiosman$ >
    -----------------finish-----------------
    Does that mean that I'm connected to mySQL?
    Does anybody how to connect to MYSQL from the terminal? Thanks.
    iMac Mac OS X (10.4.6)
    iMac   Mac OS X (10.4.6)  

    Your biggest 'issue' right now is that your mysqld process is stopping on you -- making a connection impossible.
    Why it's bombing might be in a log .. try in mysql/data/usr.local.err .. and fix why itsbombing.
    To connect to it it'll be : mysql -u root -ppassword -D database

  • Can't connect to mysql - unidentified error

    I am new at this.  I created a PHP page and I want to connect to mysql on my host's server.  I can connect to my server as I can upload my site.   When I click on my database - MYSQL connection in dreamweaver I populate the appropriate informatioin.     When I hit test I get an unidentified error  It doesn't appear it is connecting to my database.   My cpanal and database appear to be set up so I can access it remotely.
    YUUGGG.   Since I can connect to my server to upload my site, I have verified I should be ok with accessing the database remotely what could be the problem?

    Connection name = database
    MySQL server: 174.120.152.211 (I was told to use this by my hosting company since I was accessing the file remotely
    Use name:  jake_jake
    Password - password for database
    datebase = database name
    What's weired is I can connect to upload my site but when I try to connect to get my database I can't. 

Maybe you are looking for

  • IPhone 6 Plus Stuck in Portrait Mode Only

    Today, my iPhone 6 Plus stopped switching to landscape mode and only works in portrait.  The glitch is even there when watching a video in, say, the CNN or IGN Apps. I know the iPad has a switch to lock the screen rotation, but didn't think the phone

  • Remote control and data logging

    Hello, Somebody can help me? Measuring computer measures data from data acquisition card continuously. Measured data are saved to .txt file and moreover they are transmitting to Data server over Ethernet. Remote computers should be able to access to

  • Executing Abap Queries in Abap Code and processing the result

    Hi, I want to execute ABAP Queries (designed by sq01) in an abap report and processing the result in an internal table. How could it be work? Thanks a lot for your responses, with kind Regards Reinhold Strobl

  • Develop a report to migrate territories and its attributes

    Hi All, My requirement -> create territories, assign BP and attributes to it through a custom report. Using BAPI BAPI_TERRITORY_CREATE I manage to create territories but assign BP and Attributes i did not find any FM and BAPI. kindly guide me how i c

  • Page display in Reader 9.1

    Hi I like to have my pdf files open in Adobe Reader with the window maximised, the bookmarks in the left hand column and the pages displayed to fill the width of the remaining window space. I have tried various settings in Preferences to try and achi