Mysql database moving it to my webserver

Hi  I wonder if some one could help me with moving my Dreamweaver CS4 .php files from my local machine to my webserver.
I have set up wamp as my localhost and have started to develop my database and webpages on my local machine, I am now at the point of moving my data and webpages to my hosting company.
What is best practice as this stage, do I complete all my webpages on my localhost and then transfer or do I develop with my pages online?
I have been trying to find some training on the different tester server settings but can only find stuff that talks about localhost.?
sorry for the beginer questions, just some links would be a great help.

What is best practice as this stage, do I complete all my webpages on my localhost and then transfer or do I develop with my pages online?
I have no idea about best practice; what motivates me to broadcast my pages to the internet is when I have a fairly complete; but working site. The reason I wait for the completeness of the site is so that I do not confuse people that start browsing the site. Make sure that pages that do not work properly are marked as under construction or similar.
I have been trying to find some training on the different tester server settings but can only find stuff that talks about localhost.?
It is best to talk to the hosting company for this as each company has different rules and settings.
I hope this helps.
Ben

Similar Messages

  • Moving a mySQL database

    Hi,
    after a mySQL database is created and filled with data, can it be moved to a different machine? E.g., from 1 PC to another. Is it something like a big file that can be saved to a disk or ftp'ed?
    P.S. Regardless of the answer, does the same apply to any other kind of DB, such as Oracle, etc?
    Thank you so much in advance,
    Reshat.

    COPY FULL DATABASE:
    Oracle:
    if you want to move complete database on another server's empty database, take a backup and restore it on another server.
    SQL Server:
    Thse same works for SQLServer.
    MOVE PART OF THE DATA:
    Orcale:
    Export into a flat file and load on the the other database.
    SqlServer:
    Use DTS Wizard.

  • Strange problem with MySQL database

    Hello,
    I'm totally puzzled by a strange error occurring with PHP/MySQL on my website... I hope someone has got an idea of what's going on and can let me know.
    In short, I have a MySQL database set up on the remote server where the website is hosted. Some pages of my website access this database with PHP.
    If the website is viewed with a browser in Windows (Firefox), it works well, the database data appear on the pages.
    If the website is viewed with a browser on Mac OS (Firefox, Safari), it doesn't work: the database isn't accessed, I get no error, just everything on the page below my PHP code is missing.
    I've attached two screenshots to show this. The website URL is: http://www.cerc.co.uk/CERC/v02/
    The pages were this occurs are: the home page (index.php and alternative index2.php), the Abous us/News page and the About us/News/Archives page.
    I really don't get where my mistake is. I would like to keep the remote server connexion details outside the root folder, but I guess that if there is no solution to this problem, then I'll have to move it back (I think it might have worked like that).
    Thanks in advance for any comment,
    Emilie
    More details
    I'm using DW CS4 on Windows XP emulated via VMware on Mac OS 10.5 (don't ask why, I wasn't given any choice). I've set up a localhost server on XP via XAMP and the news database is also there.
    Because I'm currently flipping often between the testing server and the remote server, I quickly got fed up to change all the time the connexion mode to the database (localhost or remote server) and have to resynchronise the files each time. Hence I decided to automate a bit the way the database is connected to.
    1. These 4 HTML pages with PHP code have got the below two lines when the PHP code starts:
    $pathpfx = "../.."; // see mysqlconnexion.php
    include('assets_design/php/mysqlconnexion.php');
    2. mysqlconnexion.php (see code below) calls a "connexion" file (in PHP) depending on the value of one parameter ($conxchoice). If $conxchoice = 1, the "connexion" file on the localhost is called. If $conxchoice = 2, the "connexion" file on the remote server is called. I've stored the appropriate version of mysqlconnexion.php on the localhost and the remote server (and I have checked it a million of times, they're in the right place).
    <?php
    // This code is called by and therefore included in the code of some PHP pages,
    // independently of where the pages are located within the website folder.
    // - Connexion to local server: I couldn't get the function include_once to work
    //   with a relative path, hence the use of an absolute path.
    // - Connexion to host server: I couldn't get the function include_once to work
    //   with an absolute path, hence the use of a relative path. This leads to the
    //   following problem: the path of conxsrv.php needs to be adapted to the
    //   position of the calling PHP page within the website, in order for
    //   conxsrv.php to be found on the server (it is located outside the website
    //   root folder). The variable $pathpfx is used for this purpose.
    $conxchoice = 2; // connect to 1 = testing server, 2 = host server
    // Connexion to database
    if ( $conxchoice == 1 )
    { include_once('C:\xampp\htdocs\CERC\assets_testing_server_only\conxloc.php'); }
    if ( $conxchoice == 2 )
    { include_once("$pathpfx/cgi-bin/sqlconx/conxsrv.php"); }
    ?>
    I would guess that a first hint of solution lies in the comment block, but I've really tried everything I could think of to work with relative path/absolute path respectively, unsuccessfully.
    3. The "connexion" file looks like:
    <?php
    # FileName="Connection_php_mysql.htm"
    # Type="MYSQL"
    # HTTP="true"
    $hostname_conx = "aaa";
    $database_conx = "bbb";
    $username_conx = "ccc";
    $password_conx = "ddd";
    $conx = mysql_pconnect($hostname_conx, $username_conx, $password_conx) or trigger_error(mysql_error(),E_USER_ERROR);
    ?>
    With aaa, bbb, ccc and ddd the appropriate value depending on the file. The # lines were introduced by DW when these files were created (I've then changed the variable names and moved the files to another place).
    Screenshots

    Well, my question has actually not been answered yet but the problem, as strangely as it appeared, has now disappeared. Best but scariest of all, I didn't do anything. Weird.
    Hope it never comes back,
    Emilie

  • Connecting mysql database to dreamweaver

    when i try to upload database which i did in mysql to the
    webserver from dreamweaver by doing: view - live data in
    dreamweaver i get this message: "the testing server did not execute
    any of the scripts in your document.possible explanations
    include:1. the testing server is not running 2. the testing server
    ignores files with the php. extension. 3. your document does not
    contain any scripts"
    my webserver is xampp (appache + mysql) and below are the
    scripts which i used:
    also when i do F12 the images in the database appear gibrish
    on the webserver page.
    what did i do wrong ?

    noa2 wrote:
    > when i try to upload database which i did in mysql to
    the webserver from
    > dreamweaver by doing: view - live data in dreamweaver i
    get this message: "the
    > testing server did not execute any of the scripts in
    your document.possible
    > explanations include:1. the testing server is not
    running 2. the testing server
    > ignores files with the php. extension. 3. your document
    does not contain any
    > scripts"
    It sounds as though you have not defined the testing server
    correctly in
    your Dreamweaver site definition.
    > my webserver is xampp (appache + mysql) and below are
    the scripts which i used:
    > also when i do F12 the images in the database appear
    gibrish on the webserver
    > page.
    You should not store images inside the database. Or if you
    do, you need
    to write a proxy script to display them. The normal procedure
    is to
    store the details of images (such as filename) in the
    database, but keep
    the images themselves in the normal file system. Use the
    filename from
    the recordset result to build the <img> tag to display
    the image.
    > mysql_connect("","","");
    Using mysql_connect() with only empty strings as arguments
    means you
    have a totally unprotected database.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Using iWeb to make a website that uses a mysql database

    Hi there
    i am trying to help out my friend. He has built a mysql database on his webserver, however he needs to create a page which allows him to filter and search through what is on the database.
    at the moment he is trying to code the page himself but i am sure there is a program that he can use to create the user interface and link it to the mysql database, can iWEb do this?
    or does anyone know of another website program that enables you to do this?

    He will need to hand code it.
    If you're intelligent enough to create a MySQL database in the first place, then you're clever enough to code the interface I highly doubt that there is any software that will help with only one part of it.

  • Using two MySQL databases at once

    I have a situation where one PHP page needs to access two
    MySQL databases
    for different functions (it's in integration thing). I don't
    think I can
    combine the databases because two different programs are set
    up and using
    them separately. Is there a way to do this without PHP
    getting as confused
    as it's getting? Obviously I'm no MySQL and PHP expert.....
    Mad Dog

    David Powers wrote:
    > Mad Dog wrote:
    >> That's the problem, both of these are programs that
    automatically
    >> set up their own MySQL databases and make the
    connections (Wordpress
    >> and EasyPHPCalendar), so it's not so easy to control
    the
    >> connections. Each works fine, but if I call the
    calendar from within
    >> Wordpress, it doesn't know to switch to another
    connection and gets
    >> all confused.
    >
    > It sounds as though one or both of those applications
    has been badly
    > set up (although not necessarily by you - it's more
    likely the way it
    > has been designed).
    >
    > Most programs, including Dreamweaver, use the original
    MySQL extension
    > within PHP to connect to MySQL. Specifying which
    connection to use is
    > optional with the original MySQL extension; if no
    connection is
    > specified, PHP uses whichever was opened last. To use
    two separate
    > connections, the correct connection must be specified.
    Dreamweaver
    > does this automatically. You need to look at the PHP
    code in
    > WordPress and EasyPHPCalender to see if either of them
    specifies the
    > connection. The easy way to tell is by looking at any
    line containing
    > mysql_query(). If it contains two arguments, the
    connection is being
    > properly specified. If it contains just one, that's the
    program
    > that's causing the problem.
    I think I've got it. There might be other tweaks needed, but
    I moved the
    EasyPHPCalendar table into the same database as the Wordpress
    table. With
    luck (I'll know tomorrow when I mess with it) that should cut
    the confusion
    factor!
    Thanks,
    MD

  • Cannot connect to MySQL database

    Hi
    I'm new to flex builder 3... and have therefore looked at
    lynda.com to learn about the product and get started fast. And here
    they show you how to create a connection to a MySQL database using
    MAMP on a mac (or WAMP on the PC) - I'm on the mac ;-).
    I have installed the MAMP server with both MySQL, Apache and
    PHP running on defalt ports. And I have created a simple database
    in MySQL... The site is running fine and so is the MySQL (I have
    tested with simple HTML etc)... but when I try to connect to the
    database using the wizard in Flex, I get the following message:
    Unable to connect to the database....
    If I look at the details it say (hold on):
    com.mysql.jdbc.CommunicationsException: Communications link
    failure due to underlying exception:
    ** BEGIN NESTED EXCEPTION **
    java.net.SocketException
    MESSAGE: java.net.NoRouteToHostException: No route to host
    STACKTRACE:
    java.net.SocketException: java.net.NoRouteToHostException: No
    route to host
    at
    com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:156)
    at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:284)
    at
    com.mysql.jdbc.Connection.createNewIO(Connection.java:2555)
    at
    com.mysql.jdbc.Connection.<init>(Connection.java:1485)
    at
    com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
    at
    org.eclipse.datatools.connectivity.db.generic.JDBCConnection.createConnection(JDBCConnect ion.java:87)
    at
    org.eclipse.datatools.connectivity.DriverConnectionBase.internalCreateConnection(DriverCo nnectionBase.java:104)
    at
    org.eclipse.datatools.connectivity.DriverConnectionBase.open(DriverConnectionBase.java:53 )
    at
    org.eclipse.datatools.connectivity.db.generic.JDBCConnectionFactory.createConnection(JDBC ConnectionFactory.java:52)
    at
    org.eclipse.datatools.connectivity.internal.ConnectionFactoryProvider.createConnection(Co nnectionFactoryProvider.java:77)
    at
    org.eclipse.datatools.connectivity.internal.ConnectionProfile.createConnection(Connection Profile.java:354)
    at
    com.adobe.datatools.derived.wizards.BaseConnectionProfilePage.testConnectionSimple(BaseCo nnectionProfilePage.java:70)
    at
    com.adobe.datatools.derived.wizards.BaseConnectionProfilePage.testConnection(BaseConnecti onProfilePage.java:51)
    at
    org.eclipse.datatools.connectivity.ui.wizards.ConnectionProfileDetailsPage$1.widgetSelect ed(ConnectionProfileDetailsPage.java:85)
    at
    org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:227)
    at
    org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at
    org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1495)
    at
    org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1519)
    at
    org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1504)
    at
    org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1295)
    at
    org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3350)
    at
    org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2954)
    at
    org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
    at org.eclipse.jface.window.Window.open(Window.java:796)
    at
    com.adobe.flexbuilder.dbwizard.ui.DbWizard$8.widgetSelected(DbWizard.java:598)
    at
    org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:227)
    at
    org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at
    org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1495)
    at
    org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1519)
    at
    org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1504)
    at
    org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1295)
    at
    org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3350)
    at
    org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2954)
    at
    org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
    at org.eclipse.jface.window.Window.open(Window.java:796)
    at
    com.adobe.flexbuilder.dbwizard.actions.DBWizardAction.run(DBWizardAction.java:69)
    at
    org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:256)
    at
    org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)
    at
    org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionI tem.java:546)
    at
    org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
    at
    org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java :402)
    at
    org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at
    org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1495)
    at
    org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1519)
    at
    org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1504)
    at
    org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1295)
    at
    org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3350)
    at
    org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2954)
    at
    org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
    at
    org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
    at
    org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
    at
    org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
    at
    org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
    at
    org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
    at
    org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at
    com.adobe.flexbuilder.standalone.FlexBuilderApplication.start(FlexBuilderApplication.java :112)
    at
    org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
    at
    org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:106)
    at
    org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:76)
    at
    org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
    at
    org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
    Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at
    org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
    ** END NESTED EXCEPTION **
    .... and more ...
    What the h.. does that mean - Plz advice someoone ... I'm
    really stock here ;-(
    Kind regards
    Brian

    Thanks for the answer, but I must be doing something very
    wrong - as I still havn't found the correct solution ;-(
    I have as mentioned tried both the default MySQL port (3306)
    and the one used by MAMP (8889) but without any luck.
    I do restart the MySQL server each time - and MAMP even does
    that by default when changing the port number.
    If I open myphpadmin the DB is running and as told I can
    connect to it using Dreamwaever...
    But If I run the command "telnet localhost 8889" you told my
    to, in terminal I get the following message:
    Trying ::1...
    telnet: connect to address ::1: Connection refused
    Trying fe80::1...
    telnet: connect to address fe80::1: Connection refused
    Trying 127.0.0.1...
    telnet: connect to address 127.0.0.1: Connection refused
    telnet: Unable to connect to remote host
    So here it looks as if I can't connect ??? The same happens
    if I try the default port 3306.
    Everytime I test in the wizard I get the message:
    com.mysql.jdbc.CommunicationsException: Communications link
    failure due to underlying exception:
    ** BEGIN NESTED EXCEPTION **
    java.net.SocketException
    MESSAGE: java.net.NoRouteToHostException: No route to host
    STACKTRACE:
    java.net.SocketException: java.net.NoRouteToHostException: No
    route to host
    at
    com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:....
    etc
    And yes it is the Data -> Create Application from Database
    wizard that I'm trying to use.
    I don't undersatnd why the lynda.com video tell that it is
    important to change the MAMP's settings to the default port instead
    of using the MAMP ports, when you say it is not like that ? They
    even show how to disable the default Apache webserver to use the
    MAMP one on port 80.
    Hope the terminal message can give someone a hint to the
    posible problem.
    Thanks in advance

  • Recording events in mySQL database?

    I am new to Java and would like to know if the following can be done:
    We have a web page where the user chooses to watch different Windows Media Files using a Java menu system (not written by me).
    Is it possible to record what the user is doing (i.e. which media files they are choosing) in a mySQL database? I would normally do this with PHP, but as all the action is happening once the page has loaded I don't think that will work.
    Thanks in advance!

    Sure it's possible if you notice the events and can pass on the actions to a component that does the writing.
    You can do it in PHP - unless it uses some magic to switch the embedded movies somehow, a new page has to be requested for a movie. If it all runs within the applet (I hope that this is what you mean, and not Javascript) and you can't modify it, then you can't, unless you can convince your webserver to log to the DB.

  • Transferring DB2 JDBC Calls to MySQL Database

    I am working on J2EE technology and the DB Tier for it is on IBM DB2. At offshore we are setting up the database as MySQL and not DB2. How should I implement this so that without changing any part of the existing application code, all the JDBC calls meant for DB2 is directed to MySQL database. What
    (The same code has to be moved to Client Side Server so I am very much reluctant to change the code for beans.) The application is developed on Websphere IDE
    Thanks In Advance
    KK
    The greatest thing since the creation of the world,except for the incarnation and death of Him who created it,is the discovery of the Indies. -- Francisco Lopez De Gomara
    ****************************

    Hi,
    I do not know how have you implemented your application.I guess that the most correct thing is to define a datasource in your application server and access it from there. If you have hardcoded the database connection settings then you cannot avoid the changes.
    Kiros

  • Beware: Time Machine doesn't backup MySQL databases regularly!

    I have a Mac OS X Server which runs as a webserver. I had to replace the internal harddisk, which is backupped with TM too. So after replacement I restored the system from the TM backup and discovered that I lost some database content. The contents of the restored database content was several days old. This means that TM doesn't backup the database hourly.
    FYI I had backupped the database myself to be sure, so I didn't lost any data. But it took some extra work after restoring. All other files on the server were okay.

    I'm making an assumption here... but your post doesn't have a ton of detail about your setup so...
    It probably has more to do with the fact that you actually shouldn't be backing up a mysql database with time machine if the database is running/live (Of which Time machine has no idea about any of this).
    You can't backup open database just like that and it doesn't only apply to time machine. You need to first be doing a dump of the database either manually or with an automated script and then you could allow time machine to backup the dump. You're asking for trouble and behavior similar to what you noticed here if you backup a mysql (or any other open database) in this manner. This includes the LDAP database if this machine is an OD master and cyrus database if you run the OS X mail server (pre 10.6).
    Just an FYI that it is quite likely that time machine backed up the files in question but that the database was probably damaged or missing data for the reasons I mentioned above.
    There are tools out there that can automate this process (mysql website itself has a Mac GUI client that can do automated backups).

  • Connecting to a Mysql database using CF Administrator and DW

    I can't create a mysql datasource in CF Administrator.
    If I use the following datasource settings in CF
    Administrator:
    JDBC URL: jdbc:mysql://localhost:3306/test
    Drive Class: MySQL Connector J
    AND (note the emphasis) I set my local and remote folders in
    my DW site local folder, remote folder and testing server folders
    all to C:\CFusionMX\db\, I can connect to my mysql database in CF
    Administrator.
    However, with these DW site folder settings, DW doesn't
    recognize any databases (Access or Mysql) at all.
    When I change my DW site folder settings to 'wwwroot'
    (e.g.local folder C:\CFusionMX\db\' is changed to
    'C:\CFusionMX\wwwroot') DW now lists all my CF Administrator
    databases.
    The problem is CF Administrator can't connect to my Mysql
    data sources. It gives me the error:
    "Connection verification failed for data source: javaserver
    []java.sql.SQLException: SQLException occurred in JDBCPool
    while attempting to connect, please check your username, password,
    URL, and other connectivity info.
    The root cause was that: java.sql.SQLException: SQLException
    occurred in JDBCPool while attempting to connect, please check your
    username, password, URL, and other connectivity info"
    I've tried changing the 3306 port to 8500, but this doesn't
    help.
    My java path and connector file is:
    C:\CFusionMX\wwwroot\WEB-INF\lib\mysql-connector-java-3.0.17-ga-bin.jar,
    Is this a ID/password problem? I've tried both 'root' and
    leaving the ID field in the CF Administrator add data source block,
    both to no avail. I don't have a password set in Mysql for 'root'
    either.
    Any help would be gratefully appreciated. I've been working
    on this for weeks and keep running into one problem after another.
    Thanks a million in advance.
    Sincerely,
    Graham A. Kerby

    1) ensure mysql server is running
    2) there are numerous tutorials for mysql installation out
    there
    3) there are good free mysql admin tools out there
    4) use both the above to verify your mysql installation is
    correct
    5) please tell me you do have your zonealarm DISABLED
    hth
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com

  • Connecting to a Mysql database using a ColdFusion server

    can't create a mysql datasource in CF Administrator.
    If I use the following datasource settings in CF
    Administrator:
    JDBC URL: jdbc:mysql://localhost:3306/test
    Drive Class: MySQL Connector J
    AND (note the emphasis) I set my local and remote folders in
    my DW site local folder, remote folder and testing server folders
    all to C:\CFusionMX\db\, I can connect to my mysql database in CF
    Administrator.
    However, with these DW site folder settings, DW doesn't
    recognize any databases (Access or Mysql) at all.
    When I change my DW site folder settings to 'wwwroot'
    (e.g.local folder C:\CFusionMX\db\' is changed to
    'C:\CFusionMX\wwwroot') DW now lists all my CF Administrator
    databases.
    The problem is CF Administrator can't connect to my Mysql
    data sources. It gives me the error:
    "Connection verification failed for data source: javaserver
    []java.sql.SQLException: SQLException occurred in JDBCPool
    while attempting to connect, please check your username, password,
    URL, and other connectivity info.
    The root cause was that: java.sql.SQLException: SQLException
    occurred in JDBCPool while attempting to connect, please check your
    username, password, URL, and other connectivity info"
    I've tried changing the 3306 port to 8500, but this doesn't
    help.
    My java path and connector file is:
    C:\CFusionMX\wwwroot\WEB-INF\lib\mysql-connector-java-3.0.17-ga-bin.jar,
    Is this a ID/password problem? I've tried both 'root' and
    leaving the ID field in the CF Administrator add data source block,
    both to no avail. I don't have a password set in Mysql for 'root'
    either.
    Any help would be gratefully appreciated. I've been working
    on this for weeks and keep running into one problem after another.
    Thanks a million in advance.
    Sincerely,
    Graham A. Kerby

    If it were me I would use the MySQL JDBC driver and not ODBC. Then DSN versus not-DSN wouldn't be an issue.

  • Can't connect a servlet to a mysql database (jdbc)

    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.sql.*;
    public class LoginServletJDBC extends HttpServlet{
         public void doGet(HttpServletRequest request,HttpServletResponse response)
         throws ServletException,IOException{
              sendLoginForm(response,false);     }
         public void sendLoginForm(HttpServletResponse response,boolean error)
         throws ServletException,IOException{
              response.setContentType("text/html");
              PrintWriter out = response.getWriter();
              out.println("<html><head>");
              out.println("<title>Login</title>");
              out.println("</head>");
              out.println("<body>");
              out.println("<center>");
              if(error)
                   out.println("<b>Failed login. Please try again</b>");
              out.println("<br><br>");
              out.println("<h2>Login page</h2>");
              out.println("<br>Please enter your username and password");
              out.println("<br><br>");
              out.println("<form method=post>");
              out.println("<table>");
              out.println("<tr>");
              out.println("<td>Username : </td>");
              out.println("<td><input type=text name=userName></td>");
              out.println("</tr>");
              out.println("<tr>");
              out.println("<td>Password : </td>");
              out.println("<td><input type=password name=password></td>");
              out.println("</tr>");
              out.println("<tr>");
              out.println("<td align=right colspan=3>");
              out.println("<input type=submit value=Login></td>");
              out.println("</tr>");
              out.println("</table>");
              out.println("</form>");
              out.println("</center>");
              out.println("</body></html>");
    public void doPost(HttpServletRequest request,HttpServletResponse response)
         throws ServletException,IOException{
              String userName = request.getParameter("userName");
              String password = request.getParameter("password");
              if(login(userName,password)){
                   RequestDispatcher rd = request.getRequestDispatcher("AnotherServlet");
                   rd.forward(request,response);
              else{
                   sendLoginForm(response,true);
         boolean login(String userName,String password){
              try{
                   String url = "jdbc:mysql://localhost:3306/Users";
                   Class.forName("com.mysql.jdbc.Driver");
                   Connection con = DriverManager.getConnection(url,"root","");
                   //System.out.println("got connection");
                   Statement s = con.createStatement();
                   String sql = "select userName from Users where userName='"+userName+"and password='"+password+"';";
                   ResultSet rs = s.executeQuery(sql);
                   if(rs.next()){
                        rs.close();
                        s.close();
                        con.close();
                        return true;
                   rs.close();
                   s.close();
                   con.close();
              catch(ClassNotFoundException e){
                   System.out.println(e.toString());
              catch(SQLException e){
                   System.out.println(e.toString());
              catch(Exception e){
                   System.out.println(e.toString());
              return false;
    }so ...
    here i'm trying to connect to Users mysql database (i use Tomcat 4.1 and mysql servers and clients 4.0.1-alpha)
    where is the problem ? when i run this servlet (http://localhost:8080/example/servlet/LoginServletJDBC ) it works ;
    BUT when i type an username and a password (any user&pass) my servlet doesn't connect to the database (become a infinite loop without output ; i mean no any errors and exceptions)
    i try other think : i changed the database with unexisting database and the result was that i was expected (Unknow database 'unexistingdatabase' )
    what i miss ?
    please... can anyone help me...
    thank`s in advance

    The wireless security setting that the Actiontec modem/router is using may be different...and not compatible....than the setting that the Comcast product was using.
    If you think that might the case, and you have the time to troubleshoot......
    Temporarily, turn off the wireless security on the Actiontec modem/router
    Reset an AirPort Express back to default settings, then see if it will connect using no security and allow an Internet connection when you do the Ethernet port test in the post above again.
    If the AirPort Express cannot connect correctly using no security on the wireless network.....then it is a no brainer to know that it will never connect when security is enabled.  So, if the AirPort will not connect using no security, you may have an incompatibility issue between the Actiontec and Apple products.
    However, if the AirPort Express connects OK with no security, then this tells you that you will need to use a different setting for security on the Actiontec...the same that the Comcast router was using before.....so the Express will have a better chance of connecting.
    That setting would be something like WPA/WPA2 Personal, or the same setting stated another way would be WPA-PSK-TKIP.

  • Access to MySql Database in the Web Service

    Hi all,
    In my j2me web service project, i want to access to MySql database in the web service and
    my installation is
    Tomcat 5.0 for Java WSDP,
    Java Web Services Developer Pack 1.5,
    MySql Server 5.0 and environment variables are adjusted...
    server.xml where is in "C:\tomcat50-jwsdp\conf" is adjusted like this
    <!-- Replace the above Realm with one of the following to get a Realm
    stored in a database and accessed via JDBC -->
    <Realm className="org.apache.catalina.realm.JDBCRealm"
         debug="99"
         driverName="com.mysql.jdbc.Driver"
         connectionURL="jdbc:mysql://localhost:3306/erendb"
         connectionName="root"
         connectionPassword=""
    />
    but i have not access to MySql database in the web service yet...
    please help...

    Hi Luis,
    If you see closely, the productID is actually a concatenation of the areaID and the productID. The reasoning here is that a product can be in multiple nodes of the product catalog and one would need to specify the product on a particular node for the direct URL to work.
    On a client site, we came up with a better solution by creating a new FM to retrieve the specific areaID and productID for a product. This FM could be called by extending the webshop. Then a .NET program was written to re-direct a shortened form of the URL to the long URL and therefore the specific product in the product catalog. Eg.: http://yyyyy.com/b2c/b2c/product would be automatically redirected to http://yyyyy.com/b2c/b2c/init.do?shop=<shop name>&areaID=<area Guid>&productID=<product Guid>, something similar to the concept behind "tinyurl.com". A point to remember here is that this would work only for the B2C webshop.
    Hope this helps.
    Cheers,
    Ashok.

  • Problem with inserting data into mySQL database with jsp

    I have a jsp page that collects infromation about a users vehicle and puts the data into a mySQL database. Iv'e been messing around with it for ages & i can't seem to get it to work even though i cannot see anything wrong with the code, which can be seen below.
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
    <%@ include file="Connections/connection.jsp" %>
    <%
    // *** Restrict Access To Page: Grant or deny access to this page
    String MM_authorizedUsers="";
    String MM_authFailedURL="login_form.jsp";
    boolean MM_grantAccess=false;
    if (session.getValue("MM_Username") != null && !session.getValue("MM_Username").equals("")) {
      if (true || (session.getValue("MM_UserAuthorization")=="") ||
              (MM_authorizedUsers.indexOf((String)session.getValue("MM_UserAuthorization")) >=0)) {
        MM_grantAccess = true;
    if (!MM_grantAccess) {
      String MM_qsChar = "?";
      if (MM_authFailedURL.indexOf("?") >= 0) MM_qsChar = "&";
      String MM_referrer = request.getRequestURI();
      if (request.getQueryString() != null) MM_referrer = MM_referrer + "?" + request.getQueryString();
      MM_authFailedURL = MM_authFailedURL + MM_qsChar + "accessdenied=" + java.net.URLEncoder.encode(MM_referrer);
      response.sendRedirect(response.encodeRedirectURL(MM_authFailedURL));
      return;
    String vehicle_details__registration = null;
    if(request.getParameter("txt_registration") != null){ vehicle_details__registration = (String)request.getParameter("txt_registration");}
    String vehicle_details__make = null;
    if(request.getParameter("txt_make") != null){ vehicle_details__make = (String)request.getParameter("txt_make");}
    String vehicle_details__model = null;
    if(request.getParameter("txt_model") != null){ vehicle_details__model = (String)request.getParameter("txt_model");}
    String vehicle_details__colour = null;
    if(request.getParameter("txt_colour") != null){ vehicle_details__colour = (String)request.getParameter("txt_colour");}
    String vehicle_details__tax_class = null;
    if(request.getParameter("select_tax_class") != null){ vehicle_details__tax_class = (String)request.getParameter("select_tax_class");}
    String vehicle_details__chasis_num = null;
    if(request.getParameter("chasis_num") != null){ vehicle_details__chasis_num = (String)request.getParameter("chasis_num");}
    String vehicle_details__status = null;
    if(request.getParameter("radio_status") != null){ vehicle_details__status = (String)request.getParameter("radio_status");}
    String owner_details__MMColParam = "1";
    if (session.getValue("MM_Username") !=null) {owner_details__MMColParam = (String)session.getValue("MM_Username");}
    Driver Drivervehicle_details = (Driver)Class.forName(MM_connection_DRIVER).newInstance();
    Connection Connvehicle_details = DriverManager.getConnection(MM_connection_STRING,MM_connection_USERNAME,MM_connection_PASSWORD);
    PreparedStatement vehicle_details = Connvehicle_details.prepareStatement("INSERT INTO vehicle_man_db.vehicle_details (registartion, make, model, colour, tax_class, chasis_num) VALUES ('"+ String vehicle_details__registration + "', '"+ String vehicle_details__make + "', '"+ String vehicle_details__model + "', '"+ String vehicle_details__colour + "', '"+ String vehicle_details__tax_class + "', '"+ String vehicle_details__chasis_num + "', '"+ String vehicle_details__status + "')");
    vehicle_details.executeUpdate();
    %>
    <form name="add_vehicle_form" id="add_vehicle_form">
      <p>Registration mark:
        <input name="txt_registration" type="text" id="txt_registration">
    </p>
      <p>Make:
        <input name="txt_make" type="text" id="txt_make">
    </p>
      <p>Model:
        <input name="txt_model" type="text" id="txt_model">
    </p>
      <p>Colour:
        <input name="txt_colour" type="text" id="txt_colour">
      </p>
      <p>Tax Class:
        <select name="select_tax_class" id="select_tax_class">
          <option value="AAA">Band AAA (up to 100g/km)</option>
          <option value="AA">Band AA (101 - 120g/km)</option>
          <option value="A">Band A (121 - 150g/km)</option>
          <option value="B">Band B (151 - 165g/km)</option>
          <option value="C">Band C (166 - 185g/km)</option>
          <option value="D">Band D (Over 185g/km)</option>
        </select>
      </p>
      <p>Chasis Number:
        <input name="txt_chassis_num" type="text" id="txt_chassis_num">
    </p>
      <p>Status: active:
        <input name="radio_status" type="radio" value="1" checked>
        off-road
        <input name="radio_status" type="radio" value="0">
      </p>
      <p>
        <input type="submit" name="Submit" value="Submit">
    </p>
    </form>
    <%
    Connvehicle_details.close();
    %>This is the error I am getting from the server
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 3 in the jsp file: /add_vehicle_form.jsp
    Generated servlet error:
    C:\Servers\Tomcat 5.0\work\Catalina\localhost\Assignment\org\apache\jsp\add_005fvehicle_005fform_jsp.java:113: ')' expected
    PreparedStatement vehicle_details = Connvehicle_details.prepareStatement("INSERT INTO vehicle_man_db.vehicle_details (registartion, make, model, colour, tax_class, chasis_num) VALUES ('"+ String vehicle_details__registration + "', '"+ String vehicle_details__make + "', '"+ String vehicle_details__model + "', '"+ String vehicle_details__colour + "', '"+ String vehicle_details__tax_class + "', '"+ String vehicle_details__chasis_num + "', '"+ String vehicle_details__status + "')");
    ^
    1 error
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332)
         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:412)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    Any help would be much appreciated.
    Thanks

    use this ...
    PreparedStatement vehicle_details =
    Connvehicle_details.prepareStatement("INSERT INTO
    vehicle_man_db.vehicle_details (registartion, make,
    model, colour, tax_class, chasis_num) VALUES
    vehicle_details .setString(1,String
    vehicle_details__registration );
    vehicle_details setString(2,String
    vehicle_details__make );
    vehicle_details .setString(3,String
    vehicle_details__model );
    vehicle_details .setString(4,vehicle_details__colour
    vehicle_details .setString(5,String
    vehicle_details__tax_class);
    vehicle_details .setString(6,String
    vehicle_details__chasis_num );
    vehicle_details .executeQuery();Even you need a screwing up... what's the point putting that String inside. That's the bloody error.

Maybe you are looking for

  • Notification Center disappeared

    Hello! This is my second support question about my MacBook Pro. This forum has helped me in the past, and I hope it does so again. A few days ago; for no explainable reason; my notification center stopped appearing on login. What I mean by this is th

  • Imported Songs Won't Play in iTunes, but will on iPod

    I recently imported many songs from a hard drive into my iTunes library. I then updated my iPod with these additions. The songs play on my iPod but will not play in iTunes, or allow me to create a playlist containing these songs. I get a message sayi

  • RFC metadata import error - Couldnu0092t find the branch for version with id

    Hi All, When re-importing RFC meta-data, system returned following error message   <i>Couldn’t find the branch for version with id = <version id></i> I am not able to delete the existing (already imported) RFC meta-data.  However, I am able to import

  • Artifacts with premultiplied matte

    I'm working on a project that is 2560 x 1440. the Desk Animation (link) is a series of TGA files that I brought in (that include an Alpha channel). For the Alpha, I used "Guess" for premultipled alpha. If I use the blue-grey as my alpha, I get a whit

  • STK L 700 tape library robot holding the media.

    Hello All, I have an STK L700 tape library, which has 4 HP LTO3 FC tape drives and 2 IBM LTO4 FC tape drives, the robot is FC connected. I have an issue,The hand assembly picks the media from tape drives after backup and then goes to a slot and holds