No one seems to have an answer - connect to MYSQL

I have tried numerous forums and searching the internet but no one seems to be able to help.   I am just starting to build my site.  I was able upload my pages to the site.   I created a PHP page so I could create a form and connect it to a mysql database.   After I created the php code I clicked on databases so I could connect to my database.   I can't connect.   I did the remote server on CPanal.   Everything on cpanal looks good.   In dreamweaver databases - mysql connection i  I am prompted for connection name, mysql server, username, password and database name.   I know the user name, password and database name are correct.   For mysql server i actually enter the server numbers per my host.  Connection name I don't think would impact anything.    When I click test I get an unidentified error.   It's doesn't appear it is connecting.   I have tried everything.  Anythoughts?   Who ever solves is this a hero

There is one very plain reason why you cannot connect to your database and that is because you have not issued the right instructions.
Normally DW creates a connect to database file in a subfolder called Connections.
The type of file that connects to the database will depend on the serverside code that you are using. On a PHP platform the database connection file will look like
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_safeshop = "localhost";
$database_safeshop = "myData_db";
$username_safeshop = "root";
$password_safeshop = "myPassword";
$safeshop = mysql_pconnect($hostname_myData, $username_myData, $password_myData) or trigger_error(mysql_error(),E_USER_ERROR);
?>
If your site does not have the above then you will have Buckley's (Buckley's and Nunn) chance of getting your connection.
Before going any further, please read http://www.adobe.com/devnet/dreamweaver/articles/first_dynamic_site_pt1.html by David Powers.
I hope this helps.
Ben

Similar Messages

  • . I've tried getting help on the Internet, going to numerous apple agents and asking people but no one seems to have an answer.

    Can anyone give me step by step instructions on how to connect an iPad 3 to an epson sx 445? I can't find a solution anywhere. I've tried getting help on the Internet, going to numerous apple agent shops and asking people but no one seems to have an answer.Please help!!!!!

    The AirPrint compatible list shows:
    EPSON Stylus SX445W
    Is this your printer? If so, you should be able to connect it to your wireless network and use the AirPrint function to print.
    This may help: http://support.apple.com/kb/HT4356

  • Can a file be password protected using Adobe Acrobat XI Standard?  No one seems to have answered this question in the trending questions.

    I just purchased Adobe Acrobat because it was recommended to password protect files.
    However, when I checked out the Tools > Protection > Encrypt>  "Encrypt with Password" is greyed out.
    Can a file be password protected using Adobe Acrobat XI Standard?
    The OS version is Windows 7.
    No one seems to have answered the question in the Trending Questions.
    Thanks.

    Yes, it can.  Use File > Properties, and click the Security tab. Click Change, and set what you need. When the file is saved, the security is set.
    BE SURE TO KEEP THE ORIGINAL FILE TOO.

  • Buffer overrun....what do you do when NO ONE seems to know the answer?

    Hi.
    I have a problem with Quicktime (7.3). When I try to run the program I have the following error message:
    +"Microsoft Visual C++ 2005 Runtime Library+
    Program C:\....\quicktimeplayer.exe
    A buffer overrun has been detected which has corrpted the program's internal state. The program cannot safely continue execution and must now be terminated"
    It happened suddenly without installing anything. I've tryed uninstalling and installing again but the error still shows up.
    No one seems to know anything about this problem including the almighty apple. What do I do now?

    Heh.... Double indemnity....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Walt F. Schaefer" <[email protected]> wrote in
    message
    news:fopvgt$a4q$[email protected]..
    > Murray,
    >
    > FYI, those 2 links go to the same page. =8-0
    >
    > --
    >
    > Walt
    >
    >
    > "Murray *ACE*" <[email protected]>
    wrote in message
    > news:fopuiq$92q$[email protected]..
    >> Use a method similar to the one that lightbox uses.
    >>
    >> Place a positioned div over the entire grid, and
    make the div invisible
    >> with the style "display:none". Then you can have
    each thumbnail do the
    >> following -
    >>
    >> 1. Use the ChangeProperty behavior in DW to change
    the display of that
    >> overlay from display:none, to display:block
    >> 2. Use the Set Text behavior on each thumb to
    dynamically write the link
    >> to the image into that div (see here -
    >>
    >>
    http://dreamweaverresources.com/tutorials/settextoflayer.htm
    >>
    >> and a tutorial
    >>
    >>
    http://www.dreamweaverresources.com/tutorials/settextoflayer.htm
    >>
    >> )
    >>
    >> It should work fine.
    >>
    >> --
    >> Murray --- ICQ 71997575
    >> Adobe Community Expert
    >> (If you *MUST* email me, don't LAUGH when you do
    so!)
    >> ==================
    >>
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >>
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >> ==================
    >>
    >>
    >> "dxexaxnx" <[email protected]>
    wrote in message
    >> news:fopu4k$8hi$[email protected]..
    >>>I have a grid of images. I want to rollover one
    of the squares of the
    >>>grid to a
    >>> larger image that will cover the entire grid
    completely. Is this
    >>> possible? No
    >>> one I know seems to know how to do this. Please
    help!
    >>>
    >>
    >
    >

  • My Telus wireless only works with WEP, but if I switch to WEP the wireless goes down on the other Windows computer being used in the same house.  Is there a way for both of us to get wireless internet or do one of us have to be connected by the ethernet?

    My Telus wireless only works with WEP, but if I switch to WEP, the wireless on the other computers in the house (which is Windows and WPA) stops working. My computer works with the ethernet cord but I want to be wireless too!  Do one of us have to sacrifice our wireless?

    For assistance in getting your MacBook to connect to a WEP-protected wireless network, please check out this Apple Support article: AirPort: Joining an encrypted WEP or WPA Wi-Fi network

  • I'm using a new computer and to open one website I have to answer the security questions each time saying that the site doesn't recognize this computer.

    Each time I try to open my "ubt" website, I get a message that says the site does not recognize this computer so I have to answer the security questions each time. I get the message "You are attempting to log in to your account from a computer that we do not recognize..." All other websites work just fine. The Mac store person could not figure it out. This site works on Safari, but I prefer Firefox.

    The ipod is not a backup device. The music sync is one way - computer to ipod.  The only exception is itunes purchases:  Without syncing:File>transfer Purchases
    Copy everything from your backup copy of your  old computer to your new one.

  • I have a macbook pro and two monitors connected via matrox dualhead2go. The display is fine, but there is a lag with the mouse cursor. Matrox technical do not seem to have the answer, anyone else?

    As in the question, everything works fine, but there is a lag with the mouse pointer, latency issue. I have seen on other forums this has been an issue, but with different solutions, and some with no solutions. Matrox technical team have no solutions for me unfortunately, so any similar user experiences would be good.

    I have the same issue....
    Is there any solution ?
    iMac 2010 27" 2.93GHz , OSX 10.6.8 Snow Leopard, Matrox DualHead2Go ME

  • A Sync Issue Not Even Apple Seem To Have An Answer For?

    Hi,
    Since day 1 with my iPhone (UK release date) ive been having syncing issues. Ive tried every single syncing tip on the web but cannot solve them and today, as the request of Apple i took my phone back for a replacement...but the same thing with the new one.
    Basically my phone syncs fine if you make changes...eg if you tick or untick a box and click "apply" it will sync all changes, put all music, videos, settings on etc. But if you just click sync without ticking or unticking boxes (or changing anything) or you leave "auto sync" on, then the iphone will freeze up and reset itself while itunes tries to sync.
    I believe at this point is when iTunes tries to make a backup of my phone, which it has never managed to do - the work around is to never have a backup and also tick or untick a box to get the data on my phone, this is annoying if you make a change to media, say an album cover or something, as you have to click on other boxes for itunes to think you've changed something for it to sync to the phone - otherwise the crash occurs.
    So to recap ive tried reinstaling itunes, deleting itunes prefs, repairing permissions, hiding all the itunes media, resetting iphone, restoring, turning off and on etc (none of this applies now as ive changed iphones so its not a phone issue) restarted computer, shutdown computer, tried different cables, tried different usb ports, deleted history in isync, and various other things..
    Does anyone have anything more left-field as this is very annoying, so far i haven't tried it on another system because of having no data to sync on them, but i will try on another macbook in the house, and i will try on windows vista itunes on this very macbook and see if that works (ruling out a hardware error)
    Any help much appricated as id like to have auto sync on, not have to worry about accidently hitting sync, not have to use workarounds and most of all be able to get a backup of my settings on the computer! Im just suprised that an Apple computer is having problems with an Apple phone!
    - Danny

    Answer is here...
    http://discussions.apple.com/thread.jspa?messageID=6409404#6409404

  • "iFOULED" didn't "SYNC" my CONTACTS, they "SUNK" them deep! Does "iFOULED" have a back-up plan for this? Everybody seems to have an answer to RECOVERING CONTACTS...but nobody seems to be recovering...HELP? ty

    ASSUMING THAT SOMEBODY HASN'T BACKED UP THEIR CONTACTS ALREADY SOMEPLACE ELSE, CAN CONTACTS BE RECOVERED AFTER BEING LOST AFTER THE 1ST TIME???
    They also turned the few CONTACTS they left behind into GROUP CLASS? I only have GROUPS to choose from in my contacts. ALL CONTACTS is empty, on my PC & in the 3GS.

    Bad taste!

  • I seem to have lost my connection to the printer. Printer copies so is operating but will not print

    The printer is on and working as in making copies but will not print from computer.  I am using wireless option.

    Please read this post then provide some details.  What printer model? What operating system?  Are there any error messages on the printer or computer screen?
    Running the diagnostics at http://www.hp.com/go/tools may help resolve the issue.
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • Please Help! A simple question I can't seem to find the answer to.

    Ok so this is probably something really easy but I can't for the life of me get it to work.
    I got a new Macbook Pro recently and have been building up a new library with my older songs and newer ones I've acquired since the purchase. My problem is when I go to sync my Ipod to the new Mac my ipod automatically goes to the "ok to disconnect" screen without syncing anything. I pressed "sync" and "transfer purchases" and it still goes into disconnect mode, very quickly too.
    Its almost as if the ipod is protecting itself and dosen't want to sync to the new Mac for that reason, but that's what I need it to do. Its a 'Mac to Mac' move so its not like I'm putting a Mac ipod into a Windows computer.
    I've looked everywhere for answers but all I can find is troubleshooting for 'Mac to PC' solutions. No one seems to have answers for the seemingly much easier counterpart.
    What do I have to do, or how do I get to a setting that would let my ipod sync successfully on this new laptop? If anybody could help it would totally save the day.
    The ipod is an iPod classic 2008-09 120gb

    If other apps are working it must be a problem with the Pac12 app. You need to contact their developers.

  • Connections to MYSQL

    hi
    This is probably a stupid java question but it is my first real live java project so I am worrying about issues I didn't bother about in class.
    I am writing JSP for a website. I have beans which connect to MYSQL.
    In the java class which makes up the bean I have a method (updateMember)which instantiates another class which also connects to MYSQL to write an audit record(audit.addAudit(..)).
    Now all this works nicely. surprise surprise.
    My question is when I exit the bean method "updateMember" does the connection in the audit class get destroyed automatically or should I be calling a method to close the connections? I don't want to leave lots of loose connections laying around to cause problems. Neither do I want to add lots of code I don't need.
    the code in the bean is:
    if (flag=="P")// paid membership - one month
               auditData auditIt = new auditData();
               boolean aOk=auditIt.addAudit(member.getMemberID(),price,"M");
            }A simple yes or no will do.
    Thank you
    Lena

    This depends, of course, on your database connection pool provider. It is similar in some way to how the HTTP sessions are invalidated after some period of inactivity.
    Please see here for more info:
    http://jakarta.apache.org/commons/dbcp/configuration.html
    http://homepages.nildram.co.uk/~slink/java/DBPool/

  • Problem to connect to mysql from servlet using a javabean

    Hi,
    I'm new here and beginner on java to.
    I have problem to connect to MySql database, by a connection javabean.
    It's the following: a HTML page calls a servlet and this servlet imports the package connection javabean.
    It has no problem when I establish the connection inside the servlet, with all its methods (public and private). But i want to separate the code connection from servlet.
    Detail: there is no problem, using the javabean to connect to MS Access database.
    I put "mysql-connector-java-3.1.12-bin.jar" file inside WEB-INF/lib application and common/lib directories.
    I set the classpath:
    SET CLASSPATH=%CATALINA_HOME%\COMMON\LIB\mysql-connector-java-3.1.12-bin.jar;%CLASSPATH%
    I think that the servlet cannot create an instance of javabean, because passed by catch exception of the servlet init method.
    But I don't know why.
    Please Why?
    Below there are the fragment of errors, servlet code e javabean code.
    Thank you.
    Zovao.
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    java.lang.NullPointerException
    at CadServletFileBeanConexArq.doPost(CadServletFileBeanConexArq.java:47)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:716)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
    Note: The line 47 is calling insertIntoDB javabean method.
    ========///////////////===============
    // Here is the servlet CadServletFileBeanConexArq.java
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.util.*;
    import java.sql.*;
    import conJdbc.*;
    public class CadServletFileBeanConexArq extends HttpServlet {
    public ConexPed connect = null;
    private String driver = "com.mysql.jdbc.Driver";
    private String URL = "jdbc:mysql://localhost:3306/cadastro";
    public void init( ServletConfig config )
    throws ServletException
    super.init( config );
    try
    connect = new ConexPed(driver, URL, "monty", "some_pass");
    catch ( Exception e )
    e.printStackTrace();
    connect = null;
    public void doPost( HttpServletRequest req,
    HttpServletResponse res )
    throws ServletException
    boolean success = true;
    String email, nome, sobrenome, produto, valor;
    email = req.getParameter( "Email" );
    nome = req.getParameter( "Nome" );
    sobrenome = req.getParameter( "Sobrenome" );
    produto = req.getParameter( "Produto" );
    valor = req.getParameter( "Valor" );
    res.setContentType( "text/html" );
    if ( email.length() > 0 && nome.length() > 0 && sobrenome.length() > 0 && valor.length() > 0 )
    /* inserting data */
    success = connect.insertIntoDB(
    "'" + email + "','" + nome + "','" + sobrenome + "','" + produto + "'", Double.parseDouble(valor) );
    //closing connection
    public void destroy()
    connect.fecharConexao();
    =============///////////////============
    Here is the JavaBean.
    package conJdbc;
    import java.sql.*;
    public class ConexPed
    public Connection connection;
    public Statement statement;
    public ConexPed (String driver, String urlServidor, String user, String password)
    try
    Class.forName(driver);
    connection = DriverManager.getConnection(urlServidor,user,password);
    catch (ClassNotFoundException ex)
    System.out.println("N�o foi poss�vel encontrar a classe do Driver: " + driver);
    catch (SQLException ex)
    System.out.println("N�o foi poss�vel conectar ao servidor");
    try
    statement = connection.createStatement();
    catch (SQLException ex)
    System.out.println("N�o foi poss�vel criar a statement");
    *Inserting data to database
    public synchronized boolean insertIntoDB( String stringtoinsert, double valor)
    try
    statement.executeUpdate( "INSERT INTO pedido values (" + stringtoinsert + " , " + valor + ");" );
    catch ( Exception e ) {
    System.err.println(
    "ERROR: Problemas ao adicionar nova entrada" );
    e.printStackTrace();
    return false;
    return true;
    * Close statement.
    public void fecharStatement()
    try
    statement.close();
    catch (SQLException ex)
    ex.printStackTrace();
    * close database
    public void fecharConexao()
    try
    connection.close();
    catch (SQLException ex)
    ex.printStackTrace();
    }

    Hi,
    I'm new here and beginner on java to.
    I have problem to connect to MySql database, by a connection javabean.
    It's the following: a HTML page calls a servlet and this servlet imports the package connection javabean.
    It has no problem when I establish the connection inside the servlet, with all its methods (public and private). But i want to separate the code connection from servlet.
    Detail: there is no problem, using the javabean to connect to MS Access database.
    I put "mysql-connector-java-3.1.12-bin.jar" file inside WEB-INF/lib application and common/lib directories.
    I set the classpath:
    SET CLASSPATH=%CATALINA_HOME%\COMMON\LIB\mysql-connector-java-3.1.12-bin.jar;%CLASSPATH%
    I think that the servlet cannot create an instance of javabean, because passed by catch exception of the servlet init method.
    But I don't know why.
    Please Why?
    Below there are the fragment of errors, servlet code e javabean code.
    Thank you.
    Zovao.
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    java.lang.NullPointerException
    at CadServletFileBeanConexArq.doPost(CadServletFileBeanConexArq.java:47)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:716)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
    Note: The line 47 is calling insertIntoDB javabean method.
    ========///////////////===============
    // Here is the servlet CadServletFileBeanConexArq.java
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.util.*;
    import java.sql.*;
    import conJdbc.*;
    public class CadServletFileBeanConexArq extends HttpServlet {
    public ConexPed connect = null;
    private String driver = "com.mysql.jdbc.Driver";
    private String URL = "jdbc:mysql://localhost:3306/cadastro";
    public void init( ServletConfig config )
    throws ServletException
    super.init( config );
    try
    connect = new ConexPed(driver, URL, "monty", "some_pass");
    catch ( Exception e )
    e.printStackTrace();
    connect = null;
    public void doPost( HttpServletRequest req,
    HttpServletResponse res )
    throws ServletException
    boolean success = true;
    String email, nome, sobrenome, produto, valor;
    email = req.getParameter( "Email" );
    nome = req.getParameter( "Nome" );
    sobrenome = req.getParameter( "Sobrenome" );
    produto = req.getParameter( "Produto" );
    valor = req.getParameter( "Valor" );
    res.setContentType( "text/html" );
    if ( email.length() > 0 && nome.length() > 0 && sobrenome.length() > 0 && valor.length() > 0 )
    /* inserting data */
    success = connect.insertIntoDB(
    "'" + email + "','" + nome + "','" + sobrenome + "','" + produto + "'", Double.parseDouble(valor) );
    //closing connection
    public void destroy()
    connect.fecharConexao();
    =============///////////////============
    Here is the JavaBean.
    package conJdbc;
    import java.sql.*;
    public class ConexPed
    public Connection connection;
    public Statement statement;
    public ConexPed (String driver, String urlServidor, String user, String password)
    try
    Class.forName(driver);
    connection = DriverManager.getConnection(urlServidor,user,password);
    catch (ClassNotFoundException ex)
    System.out.println("N�o foi poss�vel encontrar a classe do Driver: " + driver);
    catch (SQLException ex)
    System.out.println("N�o foi poss�vel conectar ao servidor");
    try
    statement = connection.createStatement();
    catch (SQLException ex)
    System.out.println("N�o foi poss�vel criar a statement");
    *Inserting data to database
    public synchronized boolean insertIntoDB( String stringtoinsert, double valor)
    try
    statement.executeUpdate( "INSERT INTO pedido values (" + stringtoinsert + " , " + valor + ");" );
    catch ( Exception e ) {
    System.err.println(
    "ERROR: Problemas ao adicionar nova entrada" );
    e.printStackTrace();
    return false;
    return true;
    * Close statement.
    public void fecharStatement()
    try
    statement.close();
    catch (SQLException ex)
    ex.printStackTrace();
    * close database
    public void fecharConexao()
    try
    connection.close();
    catch (SQLException ex)
    ex.printStackTrace();
    }

  • Remotley connect to mySql via mm.mysql

    Hello,
    I'm running WIN2k, JDK 1.2.1_004 and I'm trying to make a local java application to connect to mysql on my web server via mm.mysql. But it doesn't work
    I get the following error:
    SQLState: 08001
    Message: No suitable driver
    Vendor: 0
    I've tried to connect via the ip:
    Connection con = DriverManager.getConnection ("jdbc:mysql://64.176.118.240:3306/grattiskort_com?user=grattis&password=");
    And domain name
    Connection con = DriverManager.getConnection ("jdbc:mysql://grattiskort.com:3306/grattiskort_com?user=grattis&password=");
    I have enabled remote connection in mysql config.
    Do I need to install the driver on my web server too, and if so, how do I do that?
    Does anyone have a clue what's wrong?
    Regards,
    Chrille

    Message: No suitable driverWhere do you load the driver?

  • My iPhone 4 won't connect to our WiFi at home, but will at other WiFi spots.  However, my parent's iPhones work and connect just fine at home using WiFi.  I have called and talked to several people and no one seems to be able to help me.

    my iPhone 4 won't connect to our WiFi at home, but will at other WiFi spots.  However, my parent's iPhones work and connect just fine at home using WiFi.  I have called and talked to several people and no one seems to be able to help me.

    The two things to try first are renewing your network lease, forgetting the network and if that doesn't work to reset all networks. You might have tried one of these but I'll repeat the steps just to make sure.
    Settings > Wi-Fi > tap the blue arrow to the right of your network name > Renew Lease
    If that doesn't work then
    Settings > Wi-Fi > tap the blue arrow to the right of your network name > Forget this Network
    If that doesn't work
    Settings > General > Networks > Reset All Networks > then reset your iPhone by
    Press and hold the Home and Sleep buttons simultaneously ignoring the red slider until the Apple logo appears. Let go of the buttons and let the device restart.
    I hope one of these will help.

Maybe you are looking for