Please help with database connection issue

Hi,
I've created a few connections and pages with a few recodsets on my local computer and am connecting fine with the database. I've uploaded the database via phpmyadmin onto a remote server and uploaded all my pages to the website and have changed the database info, user name and password in the connections folder but when I try to load the file I get a message "no database selected". I've tried various things but no luck. I'm selecting the database name but something is missing. Any help would be appreciated.
Derek

A bit more info: Here is the connection script as its defined in Dreamweaver: <?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_karen_product = "localhost";
$database_karen_product = "karen";
$username_karen_product = "root";
$password_karen_product = "root";
$karen_product = mysql_pconnect($hostname_karen_product, $username_karen_product, $password_karen_product) or trigger_error(mysql_error(),E_USER_ERROR);
?>
Where is says mysql_pconnect, I changed the $hostname_karen_product etc to 'localhost', 'username', 'the password for the database')
Do i need to do something different at $database_karen_product?
I'm basically new at this and confused as to how to alter this connection script.
Thanks
Derek

Similar Messages

  • Please help in db connectivity issue after servers moves to diff location

    Our database is 10.2.0.3 with 2 nodes in RAC. Our database servers are MS 2003 R2. Recently we moved our database to different servers in different location. Say we have location A, B and C.
    A - the location for database users include me.
    B - the old db location
    C - the new db location.
    Location B and C are in the same city but different places. A and B are located in different cities. I was told that there is no direct connection between A and C and the connection between A and C has to go through B. Since the move we have experienced database connectivity issue between A and C. Some users got “ORA-03113: end-of-file on communication channel”. For me I have constantly got “ORA-03135: connection lost contact” from Sqlplus or Toad if I leave my session idle for one hour or longer no matter if it uses dedicated connection or shared connection. We also asked our network admin to make sure there is no firewall in between and we also add KeepAliveTime and KeepAliveInterval to the new db server registry. We also have a TAR with Oracle.
    Thanks a lot for your help in advance.
    Shirley

    It feels like a firewall issue, yes. But this is realistically just a hunch-- your network admins ought to have a lot more tools at their disposal to diagnose the problem. It's quite possible that it's not a firewall but a flaky router or excessive packet loss over a WAN or any number of potential network related hiccups. If I had to place a bet, I'd be wagering on a firewall, but I certainly wouldn't be staking my life on it. I'd definitely be leaning on the network folks to diagnose the issue(s)-- there may well be multiple problems, i.e. a firewall that times out idle connections after an hour and a flaky router that drops connections for some subset of users between A and B.
    Justin

  • Help with Database Connected LiveCycle ES4 form

    Hello and thanks for taking the time to read this question, I hope you can help!
    I have a LiveCycle ES 4 form connected to an excel database.  The form has buttons to "Add", "Update" or "Find" a record.  These buttons all work correctly EXCEPT when the server drive that has the Excel file is not available.  In this case I wanted to add code the "Add" button informing the user that there is an error.  I tried adding a try/catch block before the SQL statement that inserts a record into excel but even when I purposely make the Excel file unavailable the try/catch block doesn't seem to work.  The javascript console will show an error but try/catch doesn't seem to trigger.  If I had a javascript syntax error within the try/catch block, it works as expected, but with the database connected form, it appears the try/catch block does not trigger based on errors generated as a result of the database file having an issue.  In this case, the console just shows a "GeneralError: Operation failed." message.  Why doesn't the try/catch block trigger since there is an error as stated on the console?  Is there a work around?  Thanks again for your help!!

    Hello and thanks for taking the time to read this question, I hope you can help!
    I have a LiveCycle ES 4 form connected to an excel database.  The form has buttons to "Add", "Update" or "Find" a record.  These buttons all work correctly EXCEPT when the server drive that has the Excel file is not available.  In this case I wanted to add code the "Add" button informing the user that there is an error.  I tried adding a try/catch block before the SQL statement that inserts a record into excel but even when I purposely make the Excel file unavailable the try/catch block doesn't seem to work.  The javascript console will show an error but try/catch doesn't seem to trigger.  If I had a javascript syntax error within the try/catch block, it works as expected, but with the database connected form, it appears the try/catch block does not trigger based on errors generated as a result of the database file having an issue.  In this case, the console just shows a "GeneralError: Operation failed." message.  Why doesn't the try/catch block trigger since there is an error as stated on the console?  Is there a work around?  Thanks again for your help!!

  • Can you help with my connection issues

    I cannot connect to my Contribute CS3 even though my server is fine. Does anyone have any suggestions? I spent the last hour on the phone with my server company and they tried but failed to help me connect.

    Please try the following steps.
    Delete the existing connection from Edit -> My connection .
    Create a new connection and when you Click the Advanced button next to the "How do you connect to your web server?" field in the Connection Information dialog box.
    Try toggling the Passive Mode check box (if it is unchecked, check it; if it is checked, uncheck it).
    If you are behind a firewall, check the Use firewall/proxy settings when connecting check box and click the Firewall Settings or Proxy Settings button to enter firewall information. Ask your local network administrator for help with these settings.
    Once done with the new connection you would be able to connect to your website. For more information on connection issues you may use this link http://helpx.adobe.com/contribute/kb/troubleshoot-connection-problems-contribute.html
    Regards,
    Rajeev

  • Please Help With Strange Cache Issue

    My Setup:
    a rpt report is "publish as web service" to a site hosted on IIS 7
    a Reportviewer control from a win app. accessing the report by seting its reportsource to http://xxxxxxxxxx/x.asmx
    Everything load and work correctly the first time i open my report from the winform
    My Strange Problem:
    When i re access the report (by closing down the winform then reload it and the reportviewer control) , it does not refresh data from the database again. I run a trace and verify this. It seem to be using some kind of server cache that i would like to turn off and ahve it hit the database every time i open the report
    Could someone please help?
    thanks

    So, all of the below is unknown:
    What version of CR? Unknown
    What updates for CR have been applied? None that I know of
    Make sure "Saved data" with report is not enabled. Unknown
    Make sure you dispose and close the report object. Unknown
    With all due respect, to use an analog, you're essentially saying; I got a car and it does not work. No idea if it has three wheels or four. No idea what make. No idea what engine. No idea if it uses gas, jet fuel, hydrogen... Now see if your local neighborhood mechanic can give you an idea ho to fix the car.
    Not sure why you do not have the info, unless this is a 3rd party app. If that is the case, you need to go to who ever created the app and get them to support you on it. E.g.; they will know the details and if need be, they can supply those to you or to this forum and we can go and see if we can get that car going.
    Ludek

  • Please help with txt message issue

    i am a prepaid client with no data on my plan so i have my data shut off on my iphone 4, so when i am not in wifi range and send a message to other iphone friends as a txt message (not Imessage). they are not recieving until i get back to wifi and then send as an imessage. Please help!!!!

    Turn off iMessage on the phone.

  • Help with keyboard connection issue

    I have a korg ms2000. i have a midi interface that i use convert midi to usb. so far i have successfully used it as a midi controller. my question is, is it possible to use it as an instrument and record the synth itself?
    please help.

    The cable you need would be separate plugs for whatever the Korg's outputs are (1/4 inch I assume) combining into a 1/8 inch stereo plug to go into the Mac.
    I believe you have an Intel Mac? - then you need to set GB's prefs>Sound input to 'Built-in' and then go to System Prefs and set the sound input to 'Line In'.
    If this still doesn't work try connecting the Korg to a hi-fi and make sure that it's outputs are behaving as expected.

  • Please help; iMac G5 connection issues.

    Hello,
    Granted this is not the first time I have had frustrating network troubles with these units, however this time I just can't seem to fix it.
    We are running a couple iMac G5's 1.6 GHz, 512mb ram w/ Mac OS X 10.4.11, both have airport cards installed and have worked on the network before.
    As of the other day they both decided they no longer wanted to be on the network and just sort of dropped off, nothing was changed on the computer end or the modem end. I have attempted running network diagnostics, resetting the modem, recreating locations, powering off for extended periods and even so far as to do a tcpdump with terminal commands. I just can't understand why these machines have such problems with networking and why it has to be so extremely frustrating to troubleshoot. Can anyone please help me with a run through of what this could possibly be and maybe a step by step to fix it, I may just be dumb or missing something but blah.
    Thanks much
    -G

    Change your router channel number.  Most times this works & is all you have to do.  Insturctions are inside your router user manual.
    See KB Articles:  http://support.apple.com/kb/HT1401 AirPort troubleshooting guide
    http://support.apple.com/kb/HT2712 Using network locations in Mac OS X
    ============================
    System Preferences>Network
    Click the Assist Me button.
    In the next window that pops up, click the Diagnostic button & do the necessary.
    If you are using one of Apple's routers, run the Airport Utility app which is located inside the Utilities folder.  If using a 3rd party one, read its user manual and/or contact their customer support department/website.
    =====================
    If using Apple's Airport, please re-post over in one of the AirPort Forums.
     

  • Please help with a weird issue

    Hi all,
    I'll try and be brief here but i need to give a lot of info, so please bear with me and thanx a lot for reading...
    I Have just bought a K7N2 Delta MB, AMD Athlon 2800 XP (Barton Core), 120GB Western Digital HD, Sony DVD Writer, 2 x Corsair 256 DDR RAM
    Already have ATI radeon 9600 Pro to put on it. And a 40 GB Western digital (data) drive from my old machine.
    I built the new machine in a case with a 400 Watt power supply, booted up and the machine seemed fine. Installed Windows XP professional, all seemed fine.
    THEN:
    I installed the Nvidia drivers etc from the CD, reboot...
    NTLDR is missing
    Press Ctrl Alt Del to restart.
    Being a computer engineer i checked the A: drive instantly, no floppy. Tried to reboot, same error.
    Used recovery console with chkdsk /r. This found the problem and fixed it, the machine booted again... ONCE. On the very next boot NTLDR is missing.
    I removed the second IDE drive and reinstalled windows, all seemed fine.
    Put the second drive back in, (now this was stupid of me, but I installed the Nvidia drivers again straight away - should have tried at least one reboot first, but hey ho I didn't)
    Reboot... NTLDR is missing.
    Now these are the really odd things...
    SOMETIMES the machine will boot with both drives in if I leave the Windows XP CDRom in the drive????? SOMETIMES i get NTLDR is missing.
    It is ONLY when I have a second drive in that this error occurs, if I remove it the machine boots no problem.
    I have had the machine work and boot 2 or 3 times in a row with the second hard disk on the secondary IDE with the DVD writer. But eventually the NTLDR comes back.
    The old drive is NTFS always has been
    I have tried many different combinations of IDE and drives, every option works fine unless I put another HD in the machine (yes i have tried more than one and get the same error)
    My thoughts are that something in the Nvidia drivers is causeing this, as both times the machine has had the problem on the reboot that these drivers ask for. (I need to reinstall and not install these drivers and see what happens as I havn't yet)
    Or
    The MB is faulty
    What do you guys think?
    Thx in advance.
    Kutter.

    Well in one of those weird twists of PC hell I managed to fix it, and you wouldnt believe what it was!!
    When I was setting up the machine I misread the jumper settings and removed the 200MHZ frb jumper. I realised what I'd done and replaced it. At that point the machine didnt boot, so I removed it again and the machine booted up once more (Had initially boot with the jumper on when i started)
    I sat thinking about this and figured that it was the only 'unknown' because even though the machine worked I still felt the jumper should be on. So...
    I changed the other jumper to safe mode (J12 i think it os) and  put back the 133/166 mhz jumper and sure enough same problem. So I left it on, left the other on safe mode and reset the Bios.
    I then changed the FSB to the correct 166 and viola! its been fine ever since!!!
    Go figure, gotta love PC's
    Thx again,
    Kutter.

  • Please help with a table issue

    At
    http://www.stlblues.net/default.htm,
    the mini-calendar I frame at the top right is aligning left. I
    can't find the reason, please help me align this centered /

    It's in an iframe. I can't help further than that.... 8(
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Bushido" <[email protected]> wrote in
    message
    news:ek0brg$5ip$[email protected]..
    > At
    http://www.stlblues.net/default.htm,
    the mini-calendar I frame at the
    > top right is aligning left. I can't find the reason,
    please help me align
    > this centered /
    >
    >

  • Please Help! Database connection

    Hey guys,
    I know this may seen very simple to some of you and I hope
    that you can help me with all of your knowledge. I am trying to set
    up a database for the first time. I just want to have a login page
    on my site and I have no idea how to get started. I pretty much
    need step by step instructions if someone could help. So far my
    hosting provider told me some things but I still get an error
    message. I was told the best way to connect to a ms sql database is
    through a connection string. I tried that and it told me that my
    name could not have any " - " in it. Then I tried getting rid of it
    and it keeps giving me errors. If someone could please just point
    me in the right direction to get started with this then I would be
    forever greatful. Thank you so much for any help you can give me.
    Jeremy

    here is a example of a connection string
    "Driver={Microsoft Access Driver (*.mdb)};
    DBQ=D:\Webmolder\ajack\training\db\assessment.mdb"

  • Help with database connection

    ok I am trying to use dreamweaver's database function to
    connect to a mysql database, i fill in the info and it gives me the
    following error:
    "an unidentified error has occurred"
    I know all the info i am putting in is correct as I am copy
    and pasting it directly out of my connection properties in navicat
    mysql editor which can connect to the database fine
    i tried connecting to multiple databases on multiple servers
    and every single one returned the exact same error
    I am using Dreamweaver CS3 for Mac OSx
    thx for any help
    -Ryan

    Have you gone under the Application folder and clicked on the
    plus (+) sign and created the connection to the database.
    Also, do you have username and password on the database? If
    so, you'll have to provide this information
    I don't use MAC or PHP a great deal. So my help can be rather
    limited. I'm just thinking about connection strings
    What web server are you using? MAke sure it's running and set
    up correctly. Test the server first and see if it's working. If so
    see what connections string Dreamweaver is providing. I know Apache
    had a few bugs with various version just Windows has had in the
    past, not sure how these work with OSX

  • Please help with Database and JTable.

    The class listed below is for a JTable. The main in this class is for testing only, when complete main will reside elsewhere. I need to know how to make this JTable universal. How can I set it up so that when called in a main and passed parameters it will display the information contained in that users database?? Again it must be universal so no matter who uses it, it will perform the same on all database's.
    Here's the code:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.table.*;
    public class DisplayTable extends JFrame{
    public DisplayTable() {
         JFrame jf = new JFrame("Window Title");
              jf.setSize(1100,700);
              jf.setLocation(25,50);
              jf.addWindowListener(new WindowAdapter(){
                   public void windowClosing(WindowEvent e){
                        System.exit(0);}
         TableModel tm = new AbstractTableModel(){
              String[][] data = { {"How to get database data??"}};
              String[] headers = {"How to get database headers??"};
              public int getRowCount() {return data.length;}
              public int getColumnCount() {return headers.length;}
              public Object getValueAt(int r, int c) {return data[r][c];}
              public String getColumnName(int c) {return headers[c];}
         JTable jt = new JTable(tm);
         JScrollPane jsp = new JScrollPane(jt);
              jf.getContentPane().add(jsp, BorderLayout.CENTER);
              jf.setVisible(true);
    public static void main(String args[]){
         DisplayTable dt = new DisplayTable(Database Parameters to be given here);

    You could generalize it, but it gets tricky to deal with the data types and if the JTable is editable because you would read the DB table data at run time. Using the ResultSetMetaData, you would be able to find the column type too. But, how can we cast an object at run-time?
    Below, I have provided an overview as of doing a read-only (all-strings version) of it. You may have some ideas from there.
    The database parameters that you pass to the constructor would tell the model where to connect and which DB table to read the data from. Couple of options:
    1. You can read the data in the constructor of DisplayTable into final variables and have the inner class (model) set its data and headers from those variables.
    Or
    2. Pull out the model as a separate class extending AbstractTableMode. Doing this, you can pass on the DB information to the model and have the model talk to the DB.
    And, I would use dynamic datastructures like Vector or List instead of arrays.
    You would have the following logic wherever you chose to talk to the DB:
    I am assuming that you are trying to read a complete DB table into your JTable (or may be you would pass a SELECT-query alongwith your DB information). Whatever may be the case, you would execute a select- to the DB and get a resultset back. Using that you would be able to get the ResultSetMetaData, which will give you the column count and column names. You may chose to use these column names as the header names for your JTable. With the column count you would query every row to get the object at each column.
    Here is a sample model:
    class MyModel extends AbstractTableModel {
        ArrayList columnNames = new ArrayList();
        ArrayList data = new ArrayList();
        MyModel(<DB Info>) {
            // Use the DB info and get the resultset
            ResultSetMetaData rsm = rs.getMetaData();
            int col = rsm.getColumnCount();
            for(int i=1; i<=col; i++) {
                columnNames.add(rsm.getColumnName(i));
            // Read the data
            while(rs.next()) {
                ArrayList row = new ArrayList();
                data.add(row);
                for(int j=1; j<=col; j++) {
                    // Here is the tricky part which I did not figure yet. For now, I am reading in all as Strings.
                    row.add(rs.getObject(j).toString());
        public String getColumnName(int c) {
            return (String)columnNames.get(c);
        public int getColumnCount() {
            return columnNames.size();
        public Object getValueAt(int r,int c) {
            ArrayList row = (ArrayList)data.get(r);
            return (String)row.get(c);
        public int getRowCount() {
            return data.size();
    }If you figured a way to handle run-time casting, please let us know.
    HTH.
    Vijay

  • Can anyone please help with a Connect by PRIOR sql?

    Hi,
    I am not so well versed in Oracle analytic functions and am having trouble with a sql.
    Oracle Version: 9.2.0.1.0
    I have a tree table storing heirarchies upto 4 levels.
    create table FAMILY_TREE
    TREE_ID NUMBER not null,
    PARENT_ID NUMBER,
    NAME VARCHAR2(100)
    I know that using a CONNECT BY PRIOR, I can find out who the previous ancestar is.
    select
    f.tree_id TreeId,
    f.parent_id ParentId,
    f.Name Name
    from family_tree f
    connect by
    prior f.tree_id = f.parent_id
    start with f.parent_id is null
    I need to display all the ancestars in a single line (in different columns), which is where I am stumped.
    I need the output, in different columns as :
    Joe Jack Harry Rick Ned
    Bascially, I need to display in a single row, all the ancestars.
    I tried to use joins but it was very very slow due to the fact that I had to perform multiple joins.
    Can anyone please point me in the right direction?
    Data:
    insert into FAMILY_TREE (TREE_ID, PARENT_ID, NAME)
    values (1, null, 'Joe');
    insert into FAMILY_TREE (TREE_ID, PARENT_ID, NAME)
    values (2, 1, 'Jack');
    insert into FAMILY_TREE (TREE_ID, PARENT_ID, NAME)
    values (3, 2, 'Harry');
    insert into FAMILY_TREE (TREE_ID, PARENT_ID, NAME)
    values (4, 3, 'Rick');
    insert into FAMILY_TREE (TREE_ID, PARENT_ID, NAME)
    values (5, 4, 'Ned');

    This may give you a start
    SQL> ed
    Wrote file afiedt.buf
      1  select f.tree_id TreeId,f.parent_id ParentId,
      2          trim(',' from sys_connect_by_path(f.Name,',')) name
      3  from family_tree f
      4  connect by
      5  prior f.tree_id = f.parent_id
      6* start with f.parent_id is null
    SQL> /
        TREEID   PARENTID NAME
             1            Joe
             2          1 Joe,Jack
             3          2 Joe,Jack,Harry
             4          3 Joe,Jack,Harry,Rick
             5          4 Joe,Jack,Harry,Rick,Ned
    Message was edited by:
            jeneesh
    Forgot to refresh..                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Need help with database connection and trasaction!

    Hi, I'm trying to load data from a huge report to DB2. My old way of doing this is: 1. using DriverManger.getConnection to get a connection.
    2. Then set autoCommit to false.
    3. Keep the connection open.....
    4. con.commit once I reach a section, let's say around 5000 records per section.
    5. Close the connection once I finish loading, (Finally block)
    I'm still new in the java world and kind of concern of the way of what I'm doing. Then I did some research. Perhaps using javax.sql.DataSource is a better approach. But I couldn't use it in WSAD. Do I need do some configuration? I heard it's in j2ee 1.4 . Is that the reason I couldn't use it?
    And.......I tried to use DAO pattern to talk with DB. By that way, I have to open and close connection everytime I invoke the dao method. Then how can I control the transaction? Because I don't want to insert each record data in to the table right away. I want to do the commit once I get all records for one section. No idea how can I achieve this.
    Any suggestion will be really appreciated!!!

    I'm still new in the java world and kind of concern
    of the way of what I'm doing. Then I did some
    research. Perhaps using javax.sql.DataSource is a
    better approach. But I couldn't use it in WSAD. Do I
    need do some configuration? I heard it's in j2ee 1.4
    . Is that the reason I couldn't use it?What you need to do is configure a Connection datasource. WSAD has that. You just need to go through the documentation and find out. I never worked on it.
    And.......I tried to use DAO pattern to talk with DB.
    By that way, I have to open and close connection
    everytime I invoke the dao method. Then how can I
    control the transaction? Because I don't want to
    insert each record data in to the table right away. I
    want to do the commit once I get all records for one
    section. No idea how can I achieve this.Since you want to simply insert multiple records, you might want to insert them in a batch. This is available in PreparedStatements.
    $ Carol.

Maybe you are looking for

  • Can't boot MacBook Pro 13" (mid 2010) after installing the update SMC 1.6

    First for a long time was a white screen and noisy cooler After the system battery icon was crossed out and the indicator on the left side of macbook does not show anything and everything worked cooler at high speed (he was cold macbook) After reboot

  • Suspending transactions

              Hi. I'm running WL 6.1 sp1, connecting to an oracle db. There are several places           in my application where information, including exception error messages, is being           logged to the db. The problem is that when an exception o

  • Trying to use migration assistant.

    Trying to move files from an older machine that is running Lion to a machine running Snow Leopard. The machines will not recognize each other. Do I have to upgrade to at least Lion on the target machine?

  • Read the target system

    Hi, Is it possible during the mapping to read the name of the bussines system from receiver determination?. In the mapping i have to populate the idoc control record with the name of the system the data is sent to. The reason is to find wether interf

  • InDesign/InCopy workflow errors - icml links?

    Just recently I started to have problems that crashed the InDesign (ID) and/or InCopy (IC) software, in a worflow that have worked well for a few years now. The scenario unfolds with the following steps: From an ID document ('doc1'), exported a 'laye