Connect Dreamweaver CC to MySQL

I know the old way of connecting to SQL in DW is deprecated in CC. While I can install the depraced extension, I would like to do things right. The only way I have EVER connected to SQL was using the DW database window. I know no other way, and I have been searching for a tutorial of the right way to now do this. Does one exist? I am pretty good coder, but when it comes to this stuff I am admittedly lost. I work in a Mac environment.
My hosting company has been of little help. I was trying to get them to tell me the MySQL Server I should place in the deprecated extension. They couldn't. There site says "localhost" is wrong, but gives no indication of what is right. Very frustrated.
I am trying to move me site to a more powerful hosting environment. I have successfully uploaded all my files and imported my database from the previous host. If I can just get my site to connect to the SQL database I can complete the move.
Any help would be appreciated.

PHP offers three ways to connect to and interact with a MySQL database:
MySQL
MySQLi (MySQL improved)
PDO (PHP Data Objects)
The original MySQL extension is no longer actively developed and is not recommended for new PHP/MySQL projects. Hence the reason why this feature has been dropped from DW.
There are many reference books and online articles that are helpful in database connections, simply do a Google search on
php crud tutorial mysqli
A good book which has been written by David Powers is called
PHP Solutions Dynamic Web Design Made Easy, Second Edition
I should add that in PHP circles MySQLi is preferred above PDO.
Message was edited by: Ben Pleysier

Similar Messages

  • Connecting to an online mysql database

    Good morning,
    I've been developing a website using Dreamweaver, Coldfusion,
    and MySQL on my local computer. On the localhost the website works
    well. Now I'm ready to upload my pages and need to update the data
    source so my pages can access the MySQL databases hosted by
    GoDaddy.com. I've had no luck talking with their customer service
    about which driver / which port I should use to make the
    connection. I understand that Remote Development Services (RDS) is
    disabled on their server. Am I missing any steps? Any ideas?
    Thanks,
    Tony

    This TechNote may help:
    http://www.adobe.com/go/kb400539

  • Database connectivity in struts with mysql

    Hi,
    I want to database connectivity in struts with mysql in struts-config.xml file. I have give the code in struts-config.xml file is given below...................
    <data-sources>
    <data-source key="dbname" type="org.apache.commons.dbcp.BasicDataSource" >
    <set-property property="driverClassName" value="com.mysql.jdbc.Driver" />
    <set-property property="url" value="jdbc:mysql://localhost:3306/antrowinnovation" />
    <!-- <set-property property="username" value=""/>
    <set-property property="password" value="indra" /> -->
    </data-source>
    </data-sources>
    And give the code in Action class is given below...
         int i=0;
         Connection con;
         Statement stmt;
              DataSource dataSource = (DataSource)servlet.getServletContext().getAttribute("dbname");
              System.out.println(dataSource);
         try{
              System.out.println("Database connecting....");
                   con=dataSource.getConnection();
              stmt=con.createStatement();
              System.out.println("Database connected....");
                   i=stmt.executeUpdate("insert into login values('" + username + "','" + password + "')");
                   System.out.println("Values inserted....");
                   }catch(Exception e){
                        System.out.println(e.getMessage());
                        System.out.println("Exception in try");
                        e.printStackTrace();
              return 0;
    But when i have run this then i got this Exception....
    INFO: Initialize action of type: login.LoginAction
    null
    Database connecting....
    null
    Exception in try
    java.lang.NullPointerException
         at login.LoginAction.insertUser(LoginAction.java:27)
         at login.LoginAction.execute(LoginAction.java:47)
         at org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAction.java:58)
         at org.apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractExecuteAction.java:67)
         at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
         at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
         at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304)
         at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
         at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:743)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Plz help me..

    Read some Struts tutorial.

  • Connection pool issues with Mysql

    Hi,
    I have defined sufficient read connections (50) in the toplink configuration, I am finding toplink is not releasing the connections in Mysql, this is when run from Jboss App server.
    Is anyone aware of toplink connection pool issues with MySql?
    thanks

    TopLink always closes connections, I cannot see how this could occur.
    Please include your persistence.xml or sessions.xml. Also ensure you are closing your EntityManager or ClientSession, especially if using exclusive connections.
    Also include the exception you are getting.
    James : http://www.eclipselink.org

  • CS6 Dreamweaver using PHP & MySQL - Delete Record Server Behavior?

    When I try to insert the Delete Record server behavior. I get an error message about a DeleteRecord.js file, which seems to be missing or defective.  I cannot use the server behavior.  I have a file that I developed using CS5, and it does indeed delete the record, but does not proceed to the destination I want.  I cannot change that except in the server behavior, so I'm stuck.  I have noticed that server behaviors seem to disappear without apparent cause, as it seems to have in this case.  I will appreciate any suggestions!  Is there any way to embed a call to a target page manually?  All is working WITHOUT the server behavior appearing, but I want to go to a confirmation display page that shows the record is indeed deleted, and we just return to the (now blank) delete confirmation page.  That'll drive a user bonkers!
    Thanks!
    Delete Record in CS6 Dreamweaver using PHP & MySQL?

    Well, your error message is self-explanatory.
    DW stores ServerBehaviors in 'Configuration' folder in installation directory. If one of the behavior JS files is missing/ corrupt, you'll see the error message you just did.
    I've uploaded a functional, proper version of DeleteRecord.js onto my site for you to download. Here's the link:
    http://www.sudarshan.me/adobeforum/dw/app/behavior-js/DeleteRecord.zip
    Download this file, extract it and put DeleteRecord.js file in your installation directory as follows. If prompted, 'replace' your local copy:
    Mac: Applications > Adobe Dreamweaver CS6 > Configuration > ServerBehaviors > PHP_MySQL
    Windows: C:\Users\Your User Name\AppData\Roaming\Adobe\Dreamweaver CS6\[language]\Configuration\ServerBehaviors\PHP_MySQL
    It should work as expected.
    If that still doesn't solve the problem, reset your DW preferences and cache and try doing it. Follow the instructions here to reset cache: http://forums.adobe.com/thread/494811
    Let us know how it goes.
    -ST

  • How to Connect login form to MySql Db connectin Pls..tellme

    How to Connect login form to Mysql Db connection Pls..tell me

    Specify variables for username and password and connect with the MySQL database using the mysql_connect() function. The username “root” does not require a password by default.
    Specify the server parameter of the mysql_connect() method as localhost:3306.
    $username='root';
    $password='';
    $connection = mysql_connect('localhost:3306', $username, $password);
    If a connection does not get established output the error message using the mysql_error() function.
    if (!$connection) {
    $e = mysql_error($connection);
    echo "Error in connecting to MySQL Database.".$e;
    }

  • Connection of Forms6i with MySQL database

    Hi all,
    Can any knows how to connect Form builder to MySQL Database.
    I'am using Oracle Form builder 6i
    and MySQL 3.23 Under Windows NT 4.0( Service pack 5a)
    Pls give me your valuable suggestion
    Regards,
    Seema

    use odbc

  • Connecting to a LIVE mySQL database via Dreamweaver (ASP)

    Hi All,
    Have a bit of of an issue with connecting to my live database... I've created several sites in PHP and each time its been really easy to set up a connection to the live database (on a shared server), and work using live data... but I can't figure out how to do it when working on an ASP (vb) site!? Can anyone direct my on how to do it please? ... or direct to some documentation on the subject? Cheers!
    Regards,
    Dan

    Sorry for jumping into the thread with a bit of an off topic question, but how do you find out what kind of a db the asp server is using? I've asked my company's web host a number of times for info/help in getting connected using Dreamweaver so I can redesign our site and I never hear back from them. It's a very specialized web hosting server set up for rubber stamp web sites. Looks like most of their customers use the online website design tool that they provide, but it is very limited in what it can do. Very limited.
    They give me ftp access and I've changed what I can on the page, but with out access to the db it's hard to really change the look of the site.
    Here's the link:
    http://www.tacomarubberstamp.com

  • Connecting dreamweaver to xampp database

    I was just wondering if any one knew how to set up a mysql connection from dreamweaver to xampp
    dreamweaver and xampp are running well its just im new to this stuff so there are some things i dont know how to do
    the error code that appears tells me that there is no testing server on the server machine
    and that the testing server for the site does not match the url prefix
    if anyone could give me advice it would be great

    You will have to set up the testing server.
    In the site menu -> manage sites
    choose the site to manage -> edit
    choose the advanced menu -> testing server
    make sure all the paths lead to your site.

  • You love Dreamweaver and want Mysqli

    I offer you using dreamweaver 8.0.2 with updute
    install mx kollection 3.7.1 and phakt 3.7.1
    I collected php 5.5 compatiple codes around internet
    I tested it all. No error
    and onother great thing is about mysqli
    with phakt you can develop mysqli based web sites without coding
    for futher information ADOdb Database Abstraction Library for PHP
    because phakt based on ADOdb Database Abstraction Library for PHP

    Really it is true. During all day I tried to find a solution About how to develop a site mysqli based with dreamwEver.  As you know adobe does not care server behaviors any more. I thought that there should be right way to reach  a solution. Then I remembered phakt extension and mx collection. because both of them support each other. phakt extension was an alternative server behavior to dreamweaver'. It support almost all database connection including mysql. When you install phakt extension and mX collection in fact they are not compatible with php 5 but then you can update including files.  You can find compatible fileS. Search on google interaktonline they updated uncompitiple files. And main problem was phakt files. Because there was not solution about phakt files.  I managed to update compatible files. In fact there was single code to be added AdodD. İnc. Php then replace this file with original comes phakt. After all it worked great. Insert delete update fetch recordedset  connection user login registration etc all works great. Now I low dreamweaver much more dreamweaver is great tool. Do you need help or have question I am ready. I don't make business it is my hobby really

  • Dreamweaver CS3 with MySQL

    I've created a stored proc in MySQL5.1 and can view and
    execute it through MySQL. When I go to Dreamweaver CS3 and view my
    existing database connection it doesn't detect the stored
    procedure. I've tried starting and stopping the mysql and
    coldfusion services but that didn't work. I've closed and opened
    Dreamweaver. I've rebooted my machine but still no luck. I've
    checked the coldfusion settings and I'm allowing stored procedures
    on that connection. I have no idea what else to try. What do I need
    to do to fix this?

    rudyjwr wrote:
    > I've tried starting and stopping the
    > mysql and coldfusion services but that didn't work. I've
    closed and opened
    > Dreamweaver. I've rebooted my machine but still no luck.
    I've checked the
    > coldfusion settings and I'm allowing stored procedures
    on that connection. I
    > have no idea what else to try. What do I need to do to
    fix this?
    I'm not sure about ColdFusion, but Dreamweaver doesn't
    support MySQL
    stored procedures with its PHP server model. MySQL added
    support for
    stored procedures only in version 5.0. Most of the database
    related
    functionality in Dreamweaver predates MySQL 5.0.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Dreamweaver CC and MySQLi?

    We know all about the brilliant move (sarcasm) to remove the server behaviors from Dreamweaver and have to now rely on a deprecated extension to get them back. What I want to know is Adobe not planning on supporting MySQLi?
    If you insert a Select field in a form and try to bind it to a dynamic source it will not recognize a MySQLi recordset. (I have to rely on a third party extension just to get MySQLi into Dreamweaver to begin with.
    I loved the days when Macromedia cared for and built great software for developers. Seems as if Adobe only cares about design.
    Anyone care to answer while I go looking for real development software...16 years of loyalty down the drain...

    Hello,
    At DMXzone we've already released (in Sept 2013) a full set of extension for connecting to your database(s) and managing your database content. A great replacement of the old server behaviors technology to create new dynamic web apps built the Ajax way! The extensions are based on PHP PDO  / ASP ADO.
    The Database Connector as well as the Database Updater feature a great Database Connection Wizard, fully visual Query Builder to make your work a breeze.
    They are available for PHP and ASP
    You can check the Database Connectivity Collections and learn more about the features of the extensions on our website:
    For PHP:  http://www.dmxzone.com/go/22151/dynamic-database-connectivity-collection-php
    For ASP:  http://www.dmxzone.com/go/22152/dynamic-database-connectivity-collection-asp

  • ODBC connect from Oracle to MySQL!

    Dear All,
    I know its not very much related to the subject of this forum but DBA's often have to perform such tasks.
    I am in process of developing replication between Oracle and MySQL. For this I have planned to create materialized views in oracle that query MySQL database.
    I am using Oracle 11gR1 on Linux for Oracle Server and MySQL is on windows based server version is 5.1.
    I am stuck at the very first step that is to create a database link between Oracle and MySQL.
    On Oracle's server, I did the following:
    Installed unixODBC rpm (Installed successfully)
    Installed mysql-connector-odbc (Installed successfully)
    when i write this command odbcinst -j it gives the following information
    unixODBC 2.2.11
    D|RIVER........... : /etc/odbcinst.ini ; (my comments : Files exists)
    SYSTEM DATA SOURCE : /etc/odbc.ini (my comments : File exists )
    USER DATA SOURCE : /root/.odbc.ini (my comments : File DO NOT exists)
    Now i tried to add the following entry in the file /etc/odbc.ini
    [bssdata]
    Driver = MySQL ODBC 3.51 Driver
    DATABASE = bssdata
    DESCRIPTION = views_on_bssdata
    PWD =
    PORT = 3306
    SERVER = 192.168.0.68
    UID = root
    Now when i try to check the connectivity with the command:
    isql -v bssdata root
    Error: data source name not found, and no default driver specified.
    ERROR: Could not SQLConnect
    Anyone have tried this before, please help me out of it.
    Regards, Imran

    Hope these links help you :
    http://www.pythian.com/news/1554/how-to-access-mysql-from-oracle-with-odbc-and-sql/
    http://sysinfo.bascomp.org/2008/03/setting-oracle-heterogenous-service-mysql-to-oracle/
    http://www.idevelopment.info/data/Oracle/DBA_tips/Heterogeneous_Services/HETERO_2.shtml
    http://www.dba-oracle.com/t_heterogeneous_database_connections_sql_server.htm
    Regards
    Rajesh

  • Connecting Dreamweaver to Access 2007 database

    Hi, I am relatively new to Dreamweaver CS3; I have built a
    database in MS Access 2007; I'm looking to do either of the
    following;
    1. Put the database form on the web, so users can enter
    information straight into the database or/
    2. Create a front end form in Dreamweaver and link it to my
    database
    Ideally, I would like to do #1
    This is an internet website, not an intranet website.
    Any help would be appreciated as I am growing frustrated.
    Thanks,
    Raymond!

    matthew stuart wrote:
    > I guess ASP may be the easiest to learn because all you
    need to do is insert
    > your windows XP disk an install IIS (Internet
    Information Services). This
    > enables you to serve ASP pages locally for testing.
    That makes ASP easy to install, but ease of installation does
    not
    necessarily mean ease of learning.
    > learning it
    > is a different kettle of fish which is why I say get a
    book. The current books
    > seem to be mainly php with MySQL, but the older books
    seem to be ASP with
    > Access or MySQL.
    There's a very good reason for that. Microsoft stopped
    developing ASP in
    2000. Although ASP is widely supported, and will continue to
    be for the
    foreseeable future, it's a technology that's going nowhere.
    Anyone just
    starting out to learn how to build a database-driven website
    would be
    better advised to learn one of the technologies that remain
    in active
    development. That means ASP.NET - which has a steeper
    learning curve
    than ASP - ColdFusion, or PHP.
    Another important consideration is which database to use.
    Access is not
    designed to be used on a website. It works fine for small
    websites that
    don't get many visitors, but it creates bloated files, and
    locks up when
    traffic increases. Although MySQL and Microsoft SQL Server
    are more
    difficult to learn, they are a much better option for a
    website.
    I'm biased in favour of PHP and MySQL because I write books
    about them,
    but I would seriously advise Jedi7 to choose anything other
    than Access/ASP.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Unicode issues connecting Crystal Report to MySQL 5.0

    Post Author: Charles Wong
    CA Forum: Data Connectivity and SQL
    Hi,
    We are developing a web application by PHP 4.4.5, Crystal Report XI developer edition (English version), MySQL 5.0 and English Windows 2003 server.
    MySQL has been configured to store unicode values in all levels. In other words, connectivity, server itself, tables, etc are set to unicode.
    In the web browser, PHP can store and show special Portugues characters (e.g. çã), Chinese (both traditional and simplified) normally. In MySQL browser, all these values can be shown successfully.
    In Crystal Report, both Traditional and simplifed Chinese characters show as ???, however. The connection between Crystal Report and MySQL is throught MySQL ODBC 3.5.12 version.
    Does anybody know why? Any special setting needed in Crystal Report or in MySQL or in ODBC???

    Post Author: Charles Wong
    CA Forum: Data Connectivity and SQL
    Hi All,
    I'm replying myself.
    I read something in the Internet. Somebody said Windows and Crystal report use UCS-2 (or UTF-16?) as the unicode encoding scheme. In our the system, we set to UTF-8. Can this be a problem?

Maybe you are looking for

  • Inventory in transit open item account not cleared

    Hi Inventory in transit open item managed account not cleared with green light. But i can see clearing document number and date inFBL3N.what could be the reason? Thanks cris

  • Please bring back the Modern Skype App for x86 devices

    The desktop Application is unusable on small tablets, due to its fiddly controls, missing features and extremely high demand of system resources (RAM, CPU, etc.). It's sad to see Microsoft once again neglecting its creations (like you did with Zune).

  • V$session and v$process

    Hi, OS : Red hat 4.2/5 and Aix 5 Db : 10 1,What is the difference between terminal and machine in V$SESSION. SQL> select terminal,machine from v$session where username='SCOTT'; TERMINAL MACHINE pts/34 tctm-x001.it1.com pts/0 tctm-x001.it1.com SQL> 2,

  • Calculate with timestamps in string format

    Hi, i have the following string as valid timestamp: "22.06.2005 17:47:55,16" Is there any statement/expression in TestStand available to transform this string into a valid number of seconds, because i want to calculate the difference between too valu

  • Nokia C3: No night mode for camera

    I just got the nokia C3 and just realize that it does not have a flash for night pictures or even dark rooms, no memory card and no usb cable quite unlike my N72 that came with everything. What do i do, i have always loved nokia and the phones i have