I can't get a database connection.

Background: I have already built two sites with databases using DW CS6, PHPMySQL and the same hosting company, so I know that they allow remote connections. (I developed using the remote host, because I have never found a tutorial for how to move all local XAMPP to my host - but well, it's been working well so far.)

I set up the database using CPanel databases, added the user and the password, no problem. Entered PHP MySQL and adding a table, connected to the back and back, the table is there, as defined.

In DW, I checked the server tests, tested the connection, and it connected successfully.

Then I open a page for editing and added a database connection (just as I had done on the two previous sites that work very well). I named the connection, entered the password to the user, and tried to SELECT a database. No luck. HTTP 404 error. Manually, I added the database (the only one) and clicking test. Again not luck. FPPH 404 error.

I double checked the testing server, double checked the DB information, and nothing seems to work.

No idea what I'm doing wrong? Thanks a lot if you can help.

You can check with your host service.  Note you work by CPanel and so did I have some time back.  Had a similar problem, all worked locally but not on the online site.

The connection strings MqSQL need to have the cPanel login ID by preceding the name of the database and the username

(eg., I worked a tutorial (check_mag); DW has developed connection container file:

$hostname_check_mag = "localhost";

$database_check_mag = "php_test";

$username_check_mag = "phptestuser".

$password_check_mag = "Sue";

$check_mag = mysql_pconnnect ($hostname_check_mag, $database_check_name, $username_check_mag, $password_check_mag) or trigger_error (mysql_error (), E_USER_ERROR);

I was informed by the host support that $database_check_mag = "cpanelid_php_test" (for example: "zyxwvu_php_test") [where zyxwvu is formatted in the same way my cpanel id AND the variable $username.

I don't use this host longer so don't know if they have changed things since then.  Worth a try!

Tom

Tags: Dreamweaver

Similar Questions

  • Equium L300: can't get a wireless connection

    Hi all

    I bought a Satellite L300 PSLB2E and can't get a wireless connection. I checked the network cards and she said that working the Realtek RTL8102E Family PCI - E Fast Ethernet NIC (NDIS 6.0).
    I tried the FN + F8 but you don't receive any symbol for Wi Fi.
    I have the wireless switch to the fornt of the appliance.

    Any help much appreciated.

    Hello

    > checked network cards and she told me works the Realtek RTL8102E Family PCI - E Fast Ethernet NIC (NDIS 6.0).

    It is a LAN card and not a WLan card.
    You see a different device in the device-> Realtek RTL8187B Wireless 802 + ECS as Manager. 11b / g 54mbps USB 2.0 Network adapter +.

  • Dell Inspiron 1501 wireless light is not on and I can't get a wireless connection. Dell Inspiron 1501 wireless light is not on and I can't get a wireless connection.

    Dell Inspiron 1501 wireless light is not on and I can't get a wireless connection. I was told that I needed to press the Fn key and F2 but it doesn't change anything

    Catherine,

    To press Fn and F2, you must have installed Dell QuickSet.

    Places to look to see if your connection is activated

    Did you recently install/reinstall the operating system, have you installed the desktop system software / laptop (as appropriate) and drivers from the chipset first? If this is not the case, the rest of the drivers will not install. How to download and install drivers in the correct order

    Start with the computer system software and the chipset drivers and follow the list.

    Go to the drivers & downloads , enter your service tag, and then select your operating system. Under applications, you can find Dell QuickSet.

    Rick

  • I can't get a wireless connection. It comes up with a message saying that the adapter is not connected.

    Original title: Network card

    The laptop is a series of MSI CX600. I can't get a wireless connection. It comes up with a message saying that the adapter is not connected. The wireless adapter is not displayed next to the ethernet card but appears in the Device Manager and when you click the properties of network adapters listed that they all work normally

    Hello

    1A adapter ever worked?

    2 have you installed the disk supplied with the laptop?

    You can check that the installation of the drivers from here:

    http://www.msi.com/product/NB/CX600.HTML#/?DIV=driver&OS=Win7%2032

  • I can't get a wireless connection.

    This is going to be long so bear with me. I moved to a new location, a few days ago and got Warner from time to set up my internet cable sometime after I moved. It has set up and the modem worked perfectly, I was able to get online.

    After he had left I took my wrt54g router I used in my previous House and hung and it worked only when the cable was attached to my laptop. When I unplugged to use the laptop in the living room or when I tried to connect another laptop wireless I got it wouldn't connect.

    I went to 192.168.1.1 and set everything in place, reset the router, the modem, cycle power, everything. Is not connected, when I have searced for a Wi - Fi connection I've implemented would show up as a secure connection but on the laptop that I used to set up it would not even ask the wpa key and tries to connect for a minute, nothing would happen on the 2nd laptop, it would but after.

    So I called warner of time which says: if I go online there is nothing they can do, then they told me to call the linksys, I did and they told me to reset it I tried like 10 times and told me that the support or something has expired so I either have to buy another router go online and look for a solution, or pay $ 40 a month, or something.

    The only problem for me is that I can't get anything to connect to the wireless connection, I've set up, he shows up and all but nothing to connect.

    I tried the exact same things I did on my laptop on my old pc and everything works... I don't know if laptops work with linksys?

  • notification area: How can I get my internet connection and the life of the battery and its return in the notification area

    How can I get my internet connection and the life of the battery and its return in the notification area

    on the bottom right of my screen?

    I tried the properties and to add notifications but it net let me add them...

    Hello

    1 Please reboot nothing so interfere with this process.

    Click with the right button on Taskbar - Properties - tab Notification area - check box Volume - if it is grayed out
    Then, use this link. (The battery is the same method.)

    How to enable or disable the system tray in Vista icons (there are several methods
    and you can to use them all).
    http://www.Vistax64.com/tutorials/106787-notification-area-system-icons.html

    If necessary: a Mr Fixit

    System icons do not appear in the notification area in Windows Vista or in Windows 7 until you
    Restart the computer
    http://support.Microsoft.com/default.aspx/KB/945011

    I hope this helps.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • I can not get a wired connection on my Samsung laptop, model NP R780 J05uk.

    I can not get a wired connection on my Samsung laptop, model NP R780 J05uk.  In Device Manager, Ethernet controller has an error indicator, and when I click on properties says driver not installed.  I have asked for help to install through windows update, but found nothing.  On the site of Samsung nothing for this driver, only wireless.

    Hi Allan,

    Welcome to the Microsoft community. According to the description, you are unable to get a wired connection.

    I'll help you with this problem. I suggest you follow the steps in the article.

    Windows wireless and wired network connection problems

    I hope this helps. Let us know if you need help with Windows related issues. We will be happy to help you.

  • I can't get all the connections. HP Pavilion laptop g6 was working fine and then just stopped to say the connections of the error.

    I can't get all the connections. HP Pavilion laptop g6 was working fine and then just stopped to say the connections of the error. I tried everything I could but to no avail.

    Hi Sheryl,

    more information is needed for a better response from the community.

    Here's a generic convenience store to try:

    http://Windows.Microsoft.com/en-us/Windows/help/wired-and-wireless-network-connection-problems-in-Windows

    B Eddie

  • HP Officejet: How can I get my HP Connect acct give me credit for printed pages, but does not start printing

    How can I get my account HP Connect give me credit for the pages that they have counted print which did not actually print because the computer did not communicate on the printer correctly.

    Hello @Gunth,

    Welcome to the Forums of HP's Support. I guess when you are referring to the credits of the page you want to say that the instant the ink program. I would like to help.

    This isn't something that can be controlled from your connected HP account. You will need to speak to a representative of the competent Department of ink instant.  (A congratulations to move things in the right direction would be appreciated). The question now is how to communicate with the instant the ink service.

    Here is the solution/answer:

    The following link will give you the phone number for the different departments of the ink instant.

    Simply choose the one that applies to your country of residence.

    Instant ink contact information.

  • I can actually achieve with database connections?

    This may seem like a strange question, but once I set a MySQL connection in Dreamweaver, which actually do with it? Let me clarify what I do:

    I just discovered that we can define the MySQL connections when a PHP/MySQL site is defined. I'm used to manage my databases via MySequel or phpMyAdmin. To access the databases in rock Dreamweaver!

    So now I have a connection, I can read all my paintings... but I can't do anything with them. I can't add data, I can't change the data - all I can do is look at what is already there. I can click on the 'embed code' or the 'Show data' option, but they do not seem to do something useful: the first glue option only what is highlighted in my code, and the second brings up a window that displays data.

    What Miss me? Can I change the data somehow and just could not find the option yet? Or what else can I use my database for?

    For example, export or import data, synchronization with another host of database/database, etc.?

    Database connections are used to develop the data by web sites. So, if you are familiar with the side server script you can write code to make your site dynamic. In the past, DW had server behaviors which has simplified the process of creating web forms and displays for insert, update and select database tables, but these have been deleted because the code was never quite up to standards in force.

  • How can I get all the connections on a windows 2008 r2 through a VPN server?

    How can I route all internet connections on a Windows 2008 Standard r2 through a VPN server?

    When I try to run just on an account administrator through regular networking, it hits the vpn in offline mode when someone else that the administrator is trying to distance in.

    I have to use a vpn, because I'm on a school network and have permission to use the server, but I have to do my own static IP address.  My solution for the static IP address, he ran through a VPN with data unlimited which ended with a dedicated static IP address.

    Everything on the server works when comes the administrator will connect.  Site Internet/game/file Services/Ect.

    Post in the Windows Server Forums:
    http://social.technet.Microsoft.com/forums/en-us/category/WindowsServer/

  • I can't get an Internet connection for the store

    Separated from this thread.

    Error code: 0x80072efd

    I have windows 8 and when I want to download something in his store saying that I have no internet connection and I get this error:

    Error code: 0x80072efd

    Hello

    Thanks for posting your query in Microsoft Community.

    I understand that you have problems to access the Windows store in the machine of WIndows 8. We will surely help you in the matter of fixing.

    Error: 0x80072efd occurs when there is a temporary connection issue. As you may have to connect to the internet using other applications, it can also be a problem with the application.

    You try to run the troubleshooter app and see if that helps.

    Download and run the troubleshooter app and check.

    http://download.Microsoft.com/download/F/2/4/F24D0C03-4181-4E5B-A23B-5C3A6B5974E3/apps.diagcab

    If this does not help then, try to follow the following suggestions to reset the cache to store and check if that helps.

    Reset Windows Store cache, please follow the instructions below:

    (a) hold Windows key + Q to get the search screen

    (b) once get you the screen type find CMD

    (c) right click on CMD and Run as Administrator.

    (d) then in the BACK screen type 'WSRESET' withoutquotes and space.

    (e) press Enter.

    Also refer to:

    Temporary connection related errors may occur when you use Windows Update or Microsoft Update

    http://support.Microsoft.com/kb/836941

    I hope this helps. Otherwise, feel free to write us again for more assistance, and we will be happy to help you come.

  • I can't get a wireless connection between my computer and my Deskjet 3055 A. The operating system is Windows 8

    If anyone can help with the above problem, I would be very grateful. I was able to install the proper drivers etc for the printer from the internet, but have no idea how configure the feature wireless for Windows 8. He keeps talking about not entered the key name and the correct network security, but where should we register them and how? I tried using the installation CD, but it kept asking me to connect the computer to the printer via the USB cab so that he could get the necessary information. I did it, but he never had a more so I couldn't continue. I guess I should have seen a screen somewhere, where I entered the network name and security key, but no such thing happened. If anyone knows what to do, I would be very grarteful. Thank you!

    Download the User Guide and the reference Guide.

    http://h10025.www1.HP.com/ewfrf/wc/manualCategory?cc=us&DLC=en&LC=en&product=5224271&

    Read both and follow the instructions exactly to connect your printer.

  • How can I get a database/environment/subindex Transaction?

    I need to be able to get the transaction being an EntityIndex.  It is possible when you're a PrimaryIndex or a SecondaryIndex, but seems impossible when its subindex, because the implementation is private, it is impossible to ask "instanceof subindex", and because the instance exposes not his SecondaryIndex, that could be requested for the handle of the database get the environment for the current transaction.

    More generally, it would be well for CurrentTransaction to have a method that takes an EntityIndex or a database, instead of making the user manually search for the environment.

    Hello

    Addition of EntityIndex.getDatabase seems very reasonable. With this you can write a method of static practice for database of transaction prices, if you wish.

    Normally we cannot change this quickly, but in this case, it took less time to write the code that, in order to plan for a future release. :-) It will be in the next version, which is expected to ship by the end of November.

    -mark

  • How can I get the last connection time and full usernames on hyperion?

    I use essbase 9.3.1 with shared native security services. Is it possible that I can get the list of users with the latest log in time (the list that you get when you go to the security-> users-> users Bulletin Board... in EAS)? EAS shows the list which designates the data exists somewhere. Can someone tell me how I can get the data in the system so I can see it in an editable form... like excel?

    Reading- Re: the last details of the users connection Info

    See you soon

    John
    http://John-Goodwin.blogspot.com/

Maybe you are looking for