Can't connect to local mysql

What could be the cause of the mysql socket to refuse connections - I get the following error:

MySQL Error 2002
Unable to connect to the local MYSQL server through socket ' / var/mysql/mysql.sock' (2)

I use the login name: con1
Sever localhost
Mysql username - and several other attempts
Mysql password - and several other attempts
Database (go for it)

I'm on Mac OS x 10.4.10, using Dreamweaver 8.
I changed my configuration file to run the PHP and it works very well; I was able to set up the tables MySQL using Terminal Server. So what else should I look for? My local info, remote info, and the test server info all point to my local site directory. Prefix of the URL is http://127.0.0.1/~myname/

Thanks for any help.

David, your answer was most useful. Find how to make the symbolic link was my next challenge, but I got it and it works! In the Terminal, I found that there was a /tmp/mysql.sock but nothing to/var/mysql/same not a directory for mysql. So I had to create one and then make the link - s. I also had to use the superuser permissions to do.

On a Mac 10.4.10, here's what you do - in the Terminal
CD /var/
sudo mkdir mysql
CD (to return to the root)
sudo ln-s /tmp/mysql.sock /var/mysql/mysql.sock

At any time, you can run the ls command to see all the files and directories in the current directory, so you can keep track of you. Always press cd (enter) to return to the home (root).

Now when I return to Deamweaver, I can set up a connection to my databases and see them in the list!

Thanks again for your help, David. I'll check your PHP books too!
TEDRA

Tags: Dreamweaver

Similar Questions

  • PhpMyAdmin can not connect to local MySql server on Windows 7

    PhpMyAdmin can not connect to local MySql server on Windows 7

    This issue is beyond the scope of this site (for consumers) and to be sure, you get the best (and fastest) reply, we have to ask either on Technet (for IT Pro) or MSDN (for developers)
    *
  • Can't connect to local MySql through Dreamweaver 8

    My problems started as suggested by the title with connection to MySql and get the error that MySql modules were not loaded etc. I know that MySql is ok I checked through Navicat & MySql Administrator, can create tables, add records etc.

    Then I looked at the config PHP, apache works and can check phpinfo() page. But when I change the loaded extensions, nothing changes in the output of phpinfo. My global config is:

    Windows XP
    PHP 5.1.4
    MySql 5.0.19
    Apache 2.0.50

    In the phpinfo() page it says that my php.ini location is c:\windows that is incorrrect it lies in c:\php. There is no other file php.ini on my machine. If I move the PHP.ini in c:\windows I get my phpinfo() page, no errors are just a message in the lower left corner of Firefox.

    I downloaded and I use the last MySql connectors php_mysql.dll and libmysql.dll. I have worked on this for the last two days and have considered installing WAMP, but don't want to water my installation of MySql and Apache.

    kevibarry wrote:
    > Page phpinfo() it says that my php.ini location is c:\windows which is
    > incorrrect located in c:\php.

    You use Navicat, which seems to have some evil influence on PHP
    facilities. I've never installed it myself, but I know that he
    moved libmysql.dll to C:\WINDOWS\system32. Often the version
    installed by Navicat is obsolete. Since Navicat is going berserk if you
    Remove libmysql.dll from this location, you must copy the
    update in your system32 folder.

    Also, make sure that your PHP file is in the Windows PATH.

    --
    David powers
    Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    http://foundationphp.com/

  • connect to local mySQL using MySQL Administrator

    Hello
    I had a problem using a mySQL database remote dreamweaver php development (some tables wouldn't show in the database view). So I decided to install mySQL locally on my development computer.

    I use mySQL administrator to manage my databases and do not know how to connect to the new local mysql, I installed?

    Since the installation of mysql 5.0, I created not databases etc, so I guess I need to do first to get something to you connect to...?

    Secondly, should what details I use to connect:

    Host name: localhost?
    Port: 3306?

    All the tips, much appreciated.

    Hi Nick, thanks for your response.

    I am familiar with the connection to the DW databases, connection strings etc. But when I create a connection that is "successfully tested", the database tables do not show in the window DW database?

    That's why I installed mysql locally, hopefully resolve this issue. However, I could not connect to mysql using mysql administrator to manage. It was my request in the post.

    I now setup users mysql server scripts and a database. Now I can conenct help mysql administrator using the host name 'root', etc..

    Thanks for your comments. Can I after return and get some feedback so I still don't see tables via my local mysql also server DW.

    Thanks again.

  • How can I connect Dreamweaver to MySQL?

    I am trying to connect Dreamweaver to MySQL. I have my downloaded datatbase. The instructions I'm following say click on the + button at the top left of the databases, control panel and choose MySQL connection. I see not all + all over my screen. The instructions may be for MAM Pro that I did not. How can I connect when I could not find the connection menu? I'm on a Mac. Thanks for any help.

    Hello

    Try following this tutorial - http://www.webassist.com/support/documentation/how-tos/creating_db_connection.php.

    The + button is displayed in the image of 'connect to your database' article tutorial, (top left).

    PZ

  • MySQL error: 2303(can't connect to local host)

    At the time of the installation of mysql... Oracle has been installed in my machine.when after installation I went to launch mysql, then he gave a signal and closed with the code above error may be due to port conflict, so I uninstalled the oracle and rerun the mysql, but no avail.i installed and reinstalled so many times, but no. avail... help please!

    It comes with Vista, upgrade install and activate Forum.

    Try the support of software products: http://www.mysql.com/

    See you soon.

    Mick Murphy - Microsoft partner

  • Unable to connect to the local MySQL server through socket ' / var/lib/mysql/mysql.sock' #2 #.

    I received an email indicating that HP does not show me as having all printers which explains why I have not received information of driver update I guess.  But when I typed in HP4500 G510, I received the following error message:

    Unable to connect to the local MySQL server through socket ' / var/lib/mysql/mysql.sock' #2 #.

    And since I don't know beans about computers, I don't have any idea what it means.

    Because I had to pick a topic, I chose the one above, but no other choices were nowhere near cover.

    Hi mac64.
    I understand you are trying to register for updates for your Officejet 4500. I can certainly help you with this.

    I'll give you a link to try to register for driver updates. Please let me know if it's the same link you used and if this works differently for you, simply click on the following link: the HP driver updates.

    Hope to hear from you soon

  • How can I connect dreamweaver to 000webhost mysql/database

    The guys I spent 3-4 days just to connect the database with my dreamweaver. But I've missed so far.

    I just created a site with Basic 4 simple registration pages.

    -index.php

    -Login.php

    -register.php

    -access denied.php

    I created a table/database in 000webhost and all is well. But I can just connect it to dreamweaver.

    I use dreamweaver cc 2015.

    Whenever I try to serverbehaviour Recordset, I can't connect to database 000webhost.

    Here is the screenshot of the error.

    It comes to the start page of the registration page. I have not yet designed and all. I want to correct this 1...

    Thank you1.jpg2.jpg3.jpg4.jpg5.jpg6.jpg7.jpg

    OK, all around confusion side, you have a PHP/MySQL Server works like a charm on your local machine and you want to load on the remote control.

    If you have correctly configured the remote control in setting up a Dreamweaver Site, there should be no problem to download files in the correct remote directories. This leaves us with the transfer of data files.

    Open your local database in phpMyAdmin and then select export from the menu. Scroll and select the Save as file check box, and then press Go.

    Now, open the database in phpMyAdmin on the production server (Note: you'll need to create the database), and then select Import from the menu. Browser for the file that you saved, and then press go.

    If all goes well you should now have a mirror image of your database on the production server!

  • Problem: connect Dreamweaver CC to a local MySQL database

    Nice day

    I use Dreamweaver CC to create a dynamic site, on a Mac (but I had the same problem when I tried on Windows), with MAMP as a local server Apache with MySQL.

    the main folder of my site is .../htdocs/mysite/ so in the server settings, I set myself as follows:

    Schermata 2016-03-05 alle 10.44.21.pngSchermata 2016-03-05 alle 10.44.27.png

    And this is a job for the live preview.

    BUT

    When I try to connect Dreamweaver to MySQL, it seems that the error:

    Schermata 2016-03-05 alle 10.54.19.png

    If you ask, MAMP use 8888 for Apache http and 8889 for mysql. I can change these for 80 and 3306 by default (and write only 'localhost'), but I have the same problem. Infact if dreamweaver did not find a connection message speaks of a 404 error, so I don't think that the problem is on the configuration of the port.

    In another post, I found on the internet about this, someone said that it is a problem between different versions of php or mysql in dreamweaver and MAMP. But I have the same problem on windows with XAMPP.

    Can you help me?

    Thank you!

    This PHP: mysql_pconnect - manual should answer your question.

    In case you do not understand, the said function is not valid for PHP version 7. If you install PHP version 5.4, you won't a problem except on the track when PHP7 becomes public.

  • I can't connect to the Internet via the wireless network. It shows that I have local access only. I can't connect even in SafeMode with network.

    I can't connect to the Internet via the wireless network. It shows that I have local access only. I can't connect even in SafeMode with network.  I have Ping www.microsoft.com and the answer is "ping request could not find host www.microsoft.com.  I am connected to the network wireless through my iPad and can connect via my smartphone. This leads me to believe there is only something configured properly on my laptop. Can anyone provide assistance?

    Hello

    You can try a system restore...

    http://Windows.Microsoft.com/en-us/Windows-Vista/system-restore-frequently-asked-questions

    .. .choose time, until this problem (you may tick to show more older restore points).

    Tricky

  • Unable to connect to wireless internet; can only connect to the network, saying "Local only" or "limited connectivity".

    I have problems to connect to any wireless internet - home, library, coffee shops.  He used to work, began to get in trouble (i.e. could not connect sometimes to the diner, but works in the library) and now does not connect to internet AT ALL wireless.

    Only connects to the network saying "local only".  And I'm lucky even get that much.  Furthermore, I don't know if it's a router problem or what, but it does not even accept the password for my home network (my boyfriend has no problem on the internet with Windows 7 and the current router password).

    I use a HP G60 laptop (maybe?), I don't remember the model exactly.  Windows Vista.  I am frustrated beyond belief.  I took the computer to Best Buy and the man suggested that contact Microsoft because, in his own words, "this seems to be a very common problem with the adapter wireless in Windows Vista".

    In summary: is it a hardware or a software problem?  It seems to be a software problem that can have an impact on the material.  Nevertheless, what can I do to fix this?  Y at - it a software update, I need to try for my wireless card?

    This computer is not yet a year old, and already I am unable to use it for the internet.  Not very well I plug my ethernet cable router wireless in the library.  I bought a laptop for a reason, but it is on track to achieve more like a desktop.  Very disappointing.

    Someone, please help!

    I took the computer to Best Buy and the man suggested that contact Microsoft because, in his own words, "this seems to be a very common problem with the adapter wireless in Windows Vista".

    Is this a hardware or a software problem?  It seems to be a software problem that can have an impact on the material.  Nevertheless, what can I do to fix this?  Y at - it a software update, I need to try for my wireless card?

    Hello

    When the man from BestBuy, fortunately for us technology is not a cleaning product, there is no way of knowing if someone puts his hand on it and knowing what is wrong rather than moving oral reprimand...

    First step, log on to the HP support and download the latest drivers for your wireless card.

    The HPG60 is a very good phone but its wireless card has problems with old drivers.

    In which case it's a hardware problem, contact HP support.

    In general, you can use this process to find out what's wrong with the wireless.

    Most laptops have a physical switch for the wireless card. Read the manual of the computer and make sure that the wireless adapter is on.

    Check the Device Manager for the wireless card valid entry.

    http://www.ezlan.NET/Win7/net_dm.jpg

    If there is no valid entry, remove any entry from fake and re - install the drivers for the wireless card.

    Check network connections to make sure that you have a network icon/entry wireless connection, and that the properties of the icon (right-click on the icon) are correctly configured with the TCP/IPv4 protocol in the properties of network connections.

    http://www.ezlan.NET/Win7/net_connection_tcp.jpg

    Make sure that if there is Wireless Utility a utility vendor is not running with the native Windows wireless utility.

    Make sure you firewall No. preventing / blocks wireless components to join the network.

    Above everything is OK and it connects to the wireless router. Log in from any computer which is, or can be connected to the router with a wire wireless, disable wireless security, make sure that the wireless streaming is enabled and try to connect with no. wireless security.

    When the work turns on the Wireless security.

    Note * people sometimes make mistakes in writing and retype the password for security.

    Another way is to copy in the menu of the router and then paste it when asked of the wireless card.

    --------------------------------------------------

    I really checked and configured every thing and it doesn't work.

    Software firewall application that is not configured to allow local traffic (between the computer and the router is also a possible problem.
    some 3rd party software firewall continue to block the same aspects it traffic Local, they are turned Off (disabled). If possible, configure the firewall correctly or completely uninstall to allow a clean flow of local network traffic. If the 3rd party software is uninstalled, or disables, make sure Windows native firewall is active .

    Jack-MVP Windows Networking. WWW.EZLAN.NET

  • Connect to a Local MySQL database

    I am creating a java application and need to use a database. I decided to use a local MySQL database. I'm having difficulties to establish a connection to the database. I have analyzed various codes for this problem on the internet and wrote my own code similar to those that I analyzed. I don't see why the code below does not work because I also put the path to the connector inside the variable classpath to the environment. I did everything that was suggested on various jdbc tutorial sites and yet my code does not work. Any suggestion would be appreciated. I already posted a thread on this issue before, but the suggestions really helped and I'm hoping to get different results this time.

    These are the errors I get:

    January 2, 2011 18:10:22 homeworkorganizer. Database addCourse
    GRAVE: null
    java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
    in java.net.URLClassLoader$ 1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged (Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    to Sun.misc.Launcher$appclassloader$ AppClassLoader.loadClass (Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    at java.lang.Class.forName0 (Native Method)
    at java.lang.Class.forName(Class.java:169)
    to homeworkorganizer. Database.addCourse (Database.java:28)
    at homeworkorganizer.test.main(test.java:17)
    January 2, 2011 18:10:22 homeworkorganizer. Database addCourse
    GRAVE: null
    java.sql.SQLException: no suitable driver found for jdbc:mysql://localhost/homework
    at java.sql.DriverManager.getConnection(DriverManager.java:602)
    at java.sql.DriverManager.getConnection(DriverManager.java:185)
    to homeworkorganizer. Database.addCourse (Database.java:51)
    at homeworkorganizer.test.main(test.java:17)
    BUILD successful (total time: 0 seconds)


    Code I have:


    /*
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    */

    package homeworkorganizer;
    import java.sql. *;
    import java.util.ArrayList;
    import java.util.Properties;
    import java.util.StringTokenizer;
    import java.util.logging.Level;
    to import java.util.logging.Logger;
    java.net import. *;


    /**
    *
    Nisha * @author
    */
    public class {Database



    private String ipAdress = "localhost";

    ' public void addCourse (String courseNumber, String courseCredit, String courseName) {}
    try {}
    Class.forName ("com.mysql.jdbc.Driver");

    } catch (ClassNotFoundException ex) {}
    Logger.getLogger (Database.class.getName ()) .log (Level.SEVERE, null, ex);

    }

    Server String = "jdbc: / /" + ipAdress + "/"; "."
    String dbName = "homework."

    String url = Server + dbName;

    Properties props = new Properties ();
    props.setProperty ("user", "Christian");
    props.setProperty ("password", "pass");

    Connection Conn;
    Statement st;
    String columns = "course_number, no_credits, course_name;
    String sqlInsrt = "insert current ()" + columns + ") values";

    try {}

    Conn = DriverManager.getConnection ("jdbc:mysql://localhost/homework", "root", "kish");
    System.out.println ("connected to the database\n");
    St = conn.createStatement ();


    Add the user to the database
    String userInfo = "(""+ courseNumber +" ', '"+ courseCredit +" ', '"+ courseName +" ")"; "

    Use executeUpdate when our statement will change the database.
    st.executeUpdate (sqlInsrt + userInfo);


    }
    catch (SQLException ex) {}
    Logger.getLogger (Database.class.getName ()) .log (Level.SEVERE, null, ex);
    }

    }
    }

    According to the error, your class cannot find driver class... This means that you have not added the mysql connector jar file in your build or lib path... Please check the same...

  • JDBC connectivity with a mysql database

    I created a MySQL database, but I have problems with communication with the DB in java

    Here is the error

    java.sql.SQLException: no suitable driver found for jdbc:mysql://localhost:3306 / books

    at java.sql.DriverManager.getConnection(DriverManager.java:604)

    at java.sql.DriverManager.getConnection(DriverManager.java:221)

    to displayauthors. DisplayAuthors.main (DisplayAuthors.java:30)

    java.lang.NullPointerException

    to displayauthors. DisplayAuthors.main (DisplayAuthors.java:66)

    BUILD successful (total time: 1 second)

    ---

    I edited windowds system variables

    CLASSPATH

    .; C:\Program Files (x86)\Java\jre7\lib\ext\QTJava.zip

    CLASSPATH1 (note the 1 at the end, I don't want to replace the previous

    ., C:\Program Files (x 86) \MySQL\Connector J 5.1.30\mysql-connector-java-5.1.30-bin.jar

    ---

    Host name: localhost Port: 3306

    User name: root

    password: Tpswsd77? (changed to thios post)

    Stored connection: Instance local MySQL56

    Connection method: Standard (TCP/IP)

    HERE IS THE CODE

    public class DisplayAuthors {}

    Database URL

    public static final String DATABASE_URL = "jdbc:mysql://localhost:3306 / books."

    Launch the application

    Public Shared Sub main (String args [])

    {

    Fitting out = null; corresponds to a connection

    Statement statement = null; query statement

    ResultSet resultSet = null; manages the results

    connect to the database books and database query

    Try

    {

    establish a connection to the database

    connection = DriverManager.getConnection)

    DATABASE_URL, "deitel', 'deitel'sc');

    < defaultstate editor-fold = "collapsed" desc = "comment" >

    DATABASE_URL, 'root', 'Tpswsd77?');

    < / Publisher-trick >

    CREATE statement to query the database

    Statement = connection.createStatement ();

    query database

    resultSet = statement.executeQuery)

    "SELECT authorID, firstName, lastName FROM authors");

    process query results

    ResultSetMetaData metaData = resultSet.getMetaData ();

    int numberOfColumns = metaData.getColumnCount ();

    System.out.println ("Table Authors of books database: \n");

    for (int i = 1; i < = numberOfColumns; i ++)

    System.out.printf ("%-8s\t", metaData.getColumnName (i));

    System.out.println ();

    While (resultSet.next ())

    {

    for (int i = 1; i < = numberOfColumns; i ++)

    System.out.printf ("%-8s\t", resultSet.getObject (i));

    System.out.println ();

    } / / end while

    } / / end try

    catch (SQLException sqlException)

    {

    sqlException.printStackTrace ();

    } / / end of capture

    Finally / / resultSet, statement and connection are closed to this

    {

    Try

    {

    resultSet.close ();

    Statement.Close ();

    Connection.Close;

    } / / end try

    catch (System.Exception Exception)

    {

    exception.printStackTrace ();

    } / / end of capture

    } / / end finally

    } / / main end

    } / / end of class DisplayAuthors

    Given that you seem to be running from netbeans, you would better add the jar to the project libraries...

    And NO, you should NEVER put anything in your system classpath. It's a very bad habit, led to the equivalent of Java of the DLL hell and of course from the moment that you distribute the application to any other machine that's going to fail again.

    Add it instead of the specific CLASSPATH of the application.

    And do not put anything on the class path that has spaces in the name, it is no longer can cause problems, but don't count on that it works.

  • can I connect a mac mini to my 2008 iMac

    can I connect a mac mini to my 2008 iMac

    Yes, via your local network and sharing in sharing preferences.

    Basics - Mac file sharing

    Mac 101 - File sharing

  • I can't connect to my itunes account, infact it kept sending me an error message (310). How can I solve this

    I can't connect to my iTunes account, indeed it kept sending me an error message (310). How can I solve this?

    Try this procedure below it can help you!

    (1) open Internet Explorer, and you will probably get a message "Poxy server is not responding.

    (2) If this is the case, go to "Tools" in the toolbar of browser select 'Internet Options'.

    (2) to "I havethe nternet Options"window that appears, click on the tab "connections" at the top.

    3) click on 'network settings' at the bottom of the section.

    (4) if the "Proxy Server" box is marked with a check, click to uncheck.

    5) click 'Ok' to close the window "local area network (LAN) settings".

    6) click on 'Ok' to close the 'Internet Options'.

    (7) either refresh the page or close and reopen Internet Explorer, it should work now

Maybe you are looking for

  • How can I lock the toolbar of bookmarks to stay below the navigation bar? It moves above every time I open a new tab.

    Before the last update, my setup is: Menu bar, bar navigation, toolbar, bookmarks and tabs in that order from top to bottom. I have it configured to display the tabs do not if there is one. It starts so correct when I first open the browser, but if I

  • Compaq CQ58-260SA: upgrade the processor on a card mother HP1858

    I'm looking to upgrade the current CPU Intel Celeron B830 since my laptop Compaq CQ58-260SA. I have contributed up to 8 GB memory, the laptop has a card mother/Motherboard HP 1858. Which I believe holds the G2 plug. I searched high and low online to

  • In the space of use exceeds the warning limit

    Several of my volumes on my PS 6100F & berries EqualLogic X indicate the space use exceeds the warning limit. VMWare has plenty of available disk space when these volumes. I know a few KBs of reappropriation of disk space on the thin-provisioned berr

  • ADF where can I set the variable binding VO?

    I created VO with bind variable 'BPM_USER_NAME '.In VOImpl.java I have getter and setter:public void setBPM_USER_NAME (String value) {}ensureVariableManager () .setVariableValue ("BPM_USER_NAME", value);}I plugged my .jspx to BephorePhase - #{pageFlo

  • Virus for windows phone lumia 435 free it is

    I bought a windows phone lumia 435 and could not have known how to make a download for free anti-virus. I have tried several times with devices enterprice with work with her, what a paleative, but I need to pay. Could you comfortable on this subject