MySql database scripts

Are there MySql database scripts for all the tables?

Julie,
I may be out of place here but I don't think MySQL will make a good
adatabase for Portal Server. Native MySQL is designed for
non-transactional work. Yes MySQL now have transactions, but with the
JDBC Isolation Levels, I have heard of people having problems with this
functionality.
I Suggest if you stay with open source Databases that Postgresql may be
a better fit, as it's structure is more like Oracles except for
translations fr varchar2 and Number formats.
-- Well There is my 2 cents worth.
Tony McClay
Java Architect
"Mr BigMAN"
Julie wrote:
Are there MySql database scripts for all the tables?

Similar Messages

  • Automate MySQL database dump

    Hello All,
    I am fairly new to Unix administration,OS X in particular. I am in need of opinions for the easiest wasy to automate a command to dump a MySQL database on a rotating weekly basis. I only want 7 days worth of dumps to reside there. I have been doing it manually with the following command (I have replaced sensitive information in quotes).
    /usr/local/mysql/bin/mysqldump --user="username" --password="password" --opt "database" | gzip --best > /Volumes/MySQLDB_Dump/rgps_db_dump112906.mysql.gz
    The only part that would need to be scripted would be the date, so I think the following script would work...
    #!/bin/bash
    # RGPS MySQL backup script
    # MySQL Database Backup
    DATE=`date +%Y.%m.%u` # Year, Month, Day of Week
    echo "Performing MySQL Database and system Backup. "
    echo ""
    echo "Dumping MySQL database to /Volumes/MySQLDB_Dump/rgps_db_dump$DATE.mysql.gz"
    /usr/local/mysql/bin/mysqldump --user="username" --password="password" --opt "database" | gzip --best > /Volumes/MySQLDB_Dump/rgps_db_dump$DATE.mysql.gz
    echo ""
    I am just not sure if automator or cron (I assume this is in OS X since it is BSD) would be best to keep a rotating cycle. IF anyone knows if MySQL has its own utitlity to do this that would be great. Any help is appreciated.
    Thanks again.

    Julie,
    I may be out of place here but I don't think MySQL will make a good
    adatabase for Portal Server. Native MySQL is designed for
    non-transactional work. Yes MySQL now have transactions, but with the
    JDBC Isolation Levels, I have heard of people having problems with this
    functionality.
    I Suggest if you stay with open source Databases that Postgresql may be
    a better fit, as it's structure is more like Oracles except for
    translations fr varchar2 and Number formats.
    -- Well There is my 2 cents worth.
    Tony McClay
    Java Architect
    "Mr BigMAN"
    Julie wrote:
    Are there MySql database scripts for all the tables?

  • I can't get my website to connect to mysql database hosted on my yahoo site

    I used David Powers tutorials to build a CMS website in Dreamweaver using a testing site set up on my computer. I installed XAMPP and got it working on my computer. (I have a Windows 7 PC with Dreamweaver CS6)
    Now I have installed the mysql database on my remote site following the instructions in the help section of Yahoo Small Business, where my website is hosted. I recreated the same database on the myPHPAdmin on my remote site. (If I understood what I found out when searching for a solution, Yahoo doesn't allow me to see the database from Dreamweaver. It seems that I have to make sure the connections are correct and then upload my site to the remote server. Then it should work once up)
    Following the instructions I could find on Yahoo it seems that all I needed to do was make sure that the user name and password were the same as on my local computer and change the my Sql Server in the Server Connection in Dreamweaver CS6 to mysql instead of localhost, upload my website and it should connect. When I go to my webpage online I get "No database selected".
    I know html, css, some php, and mysql.
    I have been using Dreamweaver for approximatley 2 years and have created 2 successful websites for my husband, who is a photographer. He now wants to have a blog type news website and since I couldn't get Wordpress to do what he wanted to do I decided to create a CMS website. It works great on my computer, but now I need it to work on my remote site.
    I know it's probably something really stupid that I have overlooked and I would really appreciate any help I could get.
    I'm more than happy to learn whatever I need to learn to get this done. I have been searching all kinds of forums and I can find a lot of posts about this or a similar problem, but no solutions.
    Please let me know if I need to provide more information.

    I'm sorry, the way I wrote that was confusing. In mysql it suggested you create a new user that had limited access to access each database you created, rather than use the root user which had all permissions. So in both the mysql on my computer and the mysql on my website I created a user with the same username and password, so that when my website was on my remote server the username and password were the same as when I was testing it on my local computer.
    SnakEyez02 wrote:
    Following the instructions I could find on Yahoo it seems that all I needed to do was make sure that the user name and password were the same as on my local computer and change the my Sql Server in the Server Connection in Dreamweaver CS6 to mysql instead of localhost, upload my website and it should connect. When I go to my webpage online I get "No database selected".
    Just looking at that part of your response, I don't get what they are asking you.  Typically the remote host will require that you update the username/password and possibly SQL server.  When you are in most shared environments, which is what I presume you are in, you typically have a username that is prefix_username.  So you should be updating your script to match that information, not the other way around.  Also with the "mysql instead of localhost" comment, you would only change the script from localhost to another server (ip address) if the mySQL server is not on your web server.  If you host tells you this is true thent he value should be an IP address instead of localhost.  Is that the case?
    For the second part of your question in the "Why can't I access my database" help on Yahoo it says "If your PHP or Perl configuration files require a host name, you may have a problem with your host name. Make sure that you are using the host name mysql, not the default host name localhost." I assumed that meant that in the setup menu when establishing a server connection I needed to replace "localhost" as the mysql Server with "mysql" and then upload my website. This didn't work. Since the mysql server I am trying to access can be accessed using phpmyadmin at www.mywebsite.com/phpmyadmin this seemed to make sense to me. I think I might have managed to access the mysql server, but I'm not choosing the database I want correctly.

  • Php/mysql: can't write to mysql database [SOLVED]

    I'm writing a login script using php and mysql. I got it to work on my server about a week ago, and then I set up apache, php and mysql on my netbook so that I could take my code with me and test it. Now it doesn't work. My registration script doesn't write to the mysql database but has no errors. Here is register.php:
    <?php
    define("DB_SERVER", "localhost");
    define("DB_USER", "root");
    define("DB_PASS", "swordfish");
    define("DB_NAME", "users");
    define("TBL_USERS", "users");
    $connection = mysql_connect(DB_SERVER, DB_USER, DB_PASS) or die(mysql_error());
    mysql_select_db(DB_NAME, $connection) or die(mysql_error());
    function addUser($username, $password)
    global $connection;
    $password = md5($password);
    echo("adding $username,$password<br />");
    $q = "INSERT INTO " . TBL_USERS . " VALUES ('$username', '$password')";
    echo("query: $q<br />");
    $result = mysql_query($q, $connection);
    echo("$result<br />");
    if (isset($_POST["reg"]))
    addUser($_POST["username"], $_POST["password"]);
    echo("<a href='index.php'>click here to login</a>");
    ?>
    <html>
    <head>
    <title>Register</title>
    </head>
    <body>
    <form method="Post" name="login">
    <input type="text", name="username" /> Username<br />
    <input type="text", name="password" /> Password<br />
    <input type="submit" name="reg", value="Register" />
    </form>
    </body>
    </html>
    and here is the output (without the form):
    adding lexion,6f1ed002ab5595859014ebf0951522d9
    query: INSERT INTO users VALUES ('lexion', '6f1ed002ab5595859014ebf0951522d9')
    Also, I tried manually adding the content to the database:
    $ mysql -p -u root
    Enter password:
    Welcome to the MySQL monitor. Commands end with ; or \g.
    Your MySQL connection id is 9
    Server version 5.1.42 Source distribution
    Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
    mysql> users
    -> INSERT INTO users VALUES('lexion', 'foo')
    -> ^D
    -> Bye
    I would assume that I got something wrong with the last bit, but the php script seems like it should work. Does anybody know why it doesn't?
    Last edited by Lexion (2010-01-10 19:04:15)

    What is wrong with your PHP? Why do you think it is failing? An INSERT query doesn't return anything. Also, it's a good idea to specify which fields you are inserting into, unless you want to have to provide something for every field (tedious for tables with many fields with default values). eg:
    $q = "INSERT INTO `" . TBL_USERS . "`(`username`, `password`) VALUES ('$username', '$password')";
    As for your experiment with the mysql prompt; queries have to end with a semicolon. PHP is nice and hides that little detail from you.
    edit: Also, you're echoing text out before the HTML starts. That won't produce valid HTML. I also noticed a few other things which I corrected; look at my comments:
    <?php
    define("DB_SERVER", "localhost");
    define("DB_USER", "root");
    define("DB_PASS", "swordfish");
    define("DB_NAME", "users");
    define("TBL_USERS", "users");
    $connection = mysql_connect(DB_SERVER, DB_USER, DB_PASS) or die(mysql_error());
    mysql_select_db(DB_NAME, $connection) or die(mysql_error());
    function addUser($username, $password)
    global $connection;
    $password = md5($password);
    // echo("adding $username,$password<br />"); - Don't echo stuff before HTML starts.
    // Also, clean up user-supplied data before plugging it into a query unless you want to be vulnerable to SQL injection.
    $cleanusername = mysql_real_escape_string($username, $connection);
    $cleanpassword = mysql_real_escape_string($password, $connection); // Obviously you'd generally use some hashing algorithm like md5 or sha1 for passwords
    $q = "INSERT INTO `" . TBL_USERS . "`(`username`, `password`) VALUES ('{$cleanusername}', '{$cleanpassword}')"; // The backticks tell MySQL not to interpret any text within as a keyword (good for field names, eg a field called `date`. The curly brackets tell PHP that the stuff within refers to a variable; it's nice as PHP knows exactly what the variable name is with no possible ambiguity.
    // echo("query: $q<br />");
    $result = mysql_query($q, $connection);
    // echo("$result<br />"); - This won't do anything; in addition to INSERT queries not returning anything, the $result variable doesn't contain the results of the query, it's a pointer to them for use with mysql_result().
    ?>
    <html>
    <head>
    <title>Register</title>
    </head>
    <body>
    <?php
    if (isset($_POST["reg"]))
    addUser($_POST["username"], $_POST["password"]);
    echo("<a href='index.php'>click here to login</a>");
    ?>
    <form method="Post" name="login">
    <input type="text" name="username" /> Username<br />
    <input type="text" name="password" /> Password<br />
    <input type="submit" name="reg" value="Register" />
    </form>
    </body>
    </html>
    <?php
    mysql_close($connection); // Not strictly needed, as PHP will tidy up for you if you forget.
    ?>
    Last edited by Barrucadu (2010-01-10 17:34:20)

  • How to save values form all row in dynamic table into mysql database?

    hello guys..
    i got some problem on developing expert system using adobe dreamweaver and mysql.
    i've create a dynamic table and have some value from different row. i want to save values from all row to mysql database.. unfortunately.. i'm failed to do that.. for now, i just can save value from first row.
    kindly you can help me to solve this problem.. or maybe there is any tutorial i can follow..
    thank you in advance.
    this is my script for dynamic table
    <table border="1" cellpadding="1" cellspacing="1">
      <tr>
        <td>namaSoalan</td>
        <td>jaw</td>
      </tr>
      <?php do { ?>
        <tr>
          <td><?php echo $row_Recordset1['namaSoalan']; ?></td>
          <td><label for="9"></label>
            <select name="9" id="9">
              <option value="value" <?php if (!(strcmp("value", $row_Recordset1['namaSoalan']))) {echo "selected=\"selected\"";} ?>>sila</option>
              <option value="" <?php if (!(strcmp("", $row_Recordset1['namaSoalan']))) {echo "selected=\"selected\"";} ?>>ya</option>
              <option value="0" <?php if (!(strcmp(0, $row_Recordset1['namaSoalan']))) {echo "selected=\"selected\"";} ?>>tidak</option>
            </select>       
            <label for="u"></label></td>
        </tr>
        <?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
    </table>

    dear bregent and SnakEyez02.
    i have create 2 table, which is soalan table and temporary table.
    user will answer all the question. either 'ya' or 'tidak'..
    each answer have different value..
    this value store permanently in soalan table..
    this value i want save to temporary table too.
    for now, i success only save for the first row but i want save for all..
    anybody please help me..

  • Access MySQL Database on Server with PHP Services

    Hi there
    There are lots of tutorials on how to connect to a MySQL database on your local machine but I'd like to access a database on my server.
    When creating a new Flex Project the wizard asks me to define a Web root and a Root URL. I used '/home/ecoflexer/public_html' as Web root and 'http://ecoflexer.com' as Root URL. However, the Web root coudn't be validated. So I've chosen the local folder 'C:\ecoflexer' as Web root. Though it was possibly wrong Flash Builder generated a debug folder at the defined location. After that I went to "Connect to Data/Service" and selected "PHP Service". I tried to generate a sample using the same credentials I use for a standard PHP login script ("Server Port" was left empty). After clicking on "Connect to Database" Zend was installed and returned an error. 'gateway.php' couldn't be found on 'http://ecoflexer.com/testProject-debug/gateway.php'.
    So I went into my local Web root and copied the 'testProject-debug' folder to my server to the destination the previous error mentioned. Then another error occured concerning a Zend file. So I went back and copied the whole 'ZendFramework' folder as well to my server. It connects now successfully to my database. I can chose a table but soon after that the introspection of the service fails. I modified the 'amf_config.ini' by adding 'webroot =/home/ecoflexer/public_html' and 'zend_path =/home/ecoflexer/public_html/ZendFramework/library' but it's still not working. Anithing I've done wrong or forgot to do?
    Cheers!
    ecoFLEXER

    iam doing client server application,the database is on the server,and iam doing the log in part,so i need to access the database to match the entered user name and password?so i should implement the accessing database part on the server side with the above code,right?i didn't test that i will test it now,but i thought that it's a different way

  • Using mysql database on another machine without having mysql installed

    Hi...
    I was wondering whether its possible to copy a Mysql database that I have created on my machine, take it to another machine which does not have Mysql command line stuff installed and use my own JDBC connection to the copied mysql database and start manipulating my data. I don't know if this is possible or not ..
    The main purpose of doing this is I am creating a Java program which uses a Mysql database and I want to know if I give it to someone else to use it do they have to install Mysql and all the package or can they simply start using it.
    Thanks a lot
    Sassan

    masijade. wrote:
    TuringPest wrote:
    masijade. wrote:
    Sasanpad wrote:
    Hi...
    I was wondering whether its possible to copy a Mysql database that I have created on my machine, take it to another machine which does not have Mysql command line stuff installed and use my own JDBC connection to the copied mysql database and start manipulating my data. I don't know if this is possible or not ..No. Not only would it be in violation of the terms of your license, but a MySQL database is a client/server type setup. No MySQL binaries, no server, your client (jdbc) cannot connect.im just curious because im new to mysql myself, but what do you mean that its a violation of his license?
    do you mean for the commercial version?If he licenses his application under GPL, okay, no problem. Otherwise I read this quote
    Free use for those who never copy, modify or distribute. As long as you never distribute the MySQL Software in any way, you are free to use it for powering your application, irrespective of whether your application is under GPL license or not.
    to mean that you are not allowed to distribute MySQL (or any part of it, unless your application is GPL licensed) with your application, and if he distributes even just the data directory, he is distributing at least a part of MySQL.
    Other's may not see it that way, but do you want to take the chance?The critical element is the word distribute. If he tries to embed MySQL in the application he is giving to his users, he's distributing it. Hence a violation of the license. That does not in any way prevent him from including scripts that when the application is installed goes out and runs the script on the user's installation of MySQL and builds the databases and whatnot his application needs on their MySQL installation.
    Now, for the OP. If all you're keeping up with is urls and such and you don't have hundreds of them. I wouldn't bother with a db at all. a properties file would actually serve your purposes, and xml would suit just fine. Of course you'd have to have access to the file system and such but no licensing issues at all.
    PS.

  • Error accessing mysql database from a remote host

    Hi all,
    I'm running the following PL/SQL script and encountered some errors. The MySQL server is hosted off campus by a hosting company. However, when I run the same script against a MySQL database server hosted on campus, the script works fine. Here's the error:
    ERROR at line 3:
    ORA-04052: error occurred when looking up remote object
    cmswhit_odbc13.mdl_user@RLTEST
    ORA-00604: error occurred at recursive SQL level 1
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [MySQL][ODBC 5.1 Driver][mysqld-4.1.22-standard]SELECT command denied to user
    'cmswhit_odbc13'@'192.160.216.13' for table 'mdl_user'
    ORA-02063: preceding 2 lines from RLTEST
    Here's the script:
    sqlplus -s <<endofit
    $USERPASS
    set serveroutput on;
    DECLARE
    user_name varchar2(30);
    moo_user_name varchar2(300);
    routine VARCHAR2(40);
    cntr NUMBER(8);
    CURSOR read_saradap is
    select gobtpac_external_user
    from gobtpac
    where gobtpac_external_user in ('greenup','yfeng');
    CURSOR read_mdl_user is
    select "username" from "mdl_user"@rltest where "username" = user_name;
    -- E N D O F C U R S O R S --
    BEGIN
    dbms_output.enable(1000000000);
    -- STEP 1: Read through Banner
    cntr := 0;
    OPEN read_saradap;
    LOOP
    routine := 'Read applicant';
    -- Read an applicant record
    dbms_output.put_line('Reading Banner user');
    FETCH read_saradap INTO user_name;
    EXIT WHEN read_saradap%NOTFOUND;
    dbms_output.put_line('Read Banner username=' || user_name);
    cntr := cntr + 1;
    -- Read the Moodle user;
    routine := 'Read moodle user';
    OPEN read_mdl_user;
    FETCH read_mdl_user INTO moo_user_name;
    IF read_mdl_user%NOTFOUND THEN
    dbms_output.put_line('Moodle user not found');
    ELSE
    dbms_output.put_line('Read Moodle username=' || moo_user_name);
    END IF;
    CLOSE read_mdl_user;
    END LOOP;
    rollback;
    CLOSE read_saradap;
    dbms_output.put_line('Total processed: ' || cntr);
    EXCEPTION
    WHEN OTHERS THEN
    dbms_output.put_line(SQLCODE);
    dbms_output.put_line(SQLERRM);
    dbms_output.put_line('Error user=' || user_name);
    dbms_output.put_line(routine);
    END;
    EXIT;
    endofit

    The error seems to be quite clear: the user 'cmswhit_odbc13'@'192.160.216.13' lacks the SELECT privilege on the 'mdl_user' table...
    Max
    http://oracleitalia.wordpress.com

  • Connecting to MySQL Database with Servlet

    Hi All,
    I want to connect to MySQL Database from servlet.
    I am using Tomcat websever 3.3.1, where i have to set classpath of mysql jdbc driver.
    I tried by copying mysql jdbc driver in so many directiories of Tomcat server but it is
    giving me error like "no specified driver find"
    So please send me all the solutions and how to set the classpath to connect to
    mysql database.
    Thanks

    U r correct that so many people are giving me solutions but that are not working for me
    I think i not correct in setting the classapath to mysql jdbc driver.
    1)I have unjarred correctly and all the classes are present in that.
    yes driver class is there in that .
    2)Now i am using new version of the mysqljdbc that is 2.0.13
    If now any driver after this send me url i will download it and use it
    3)I am unable to under stand what is yourcontext in
    yourcontext/web-inf/lib?
    This is my directory structure.
    c:tomcat in this i have
    bin
    conf
    doc
    lib
    logs
    modules
    native
    webapps
    work
    in bin there are no subdirectories
    in conf i have
    auto,jserv,jk,users
    in doc i have
    appdev,images
    sample( in appdev)
    etc,lib,src,web(in sample)
    images(in sample\web)
    in lib i have
    apps
    common
    container(c:\tomcat\lib)
    in logs,modules there are no subdirectories
    in native (c:\tomcat\native) i have
    mod_jk
    mod_jserv
    in mod_jk i have
    apache 1.3
    common
    iis
    jni
    netscape
    nt_service
    in webapps i have (c:tomcat\webapps)
    Admin,Examples,root
    in Admin i have (c:\tomcat\webapps\admin)
    contextadmin
    Meta-inf
    Test
    Web-inf
    in web-inf (c:\tomcat\webapps\admin\web-inf)
    Classes,lib,script
    in classes i have (c:\tomcat\webapps\admin\web-inf\classes)
    tadm
    in examples (c:\tomcat\webapps\examples) i have
    Images,Jsp,Meta-inf,Servlets,Web-inf
    in web-inf (c:\tomcat\webapps\examples\web-inf) i have
         Classes,jsp
    in classed (c:\tomcat\webapps\examplesweb-inf\classes) i have
    Cal
    Checkbox
    Colors
    Dates
    Error
    Examples
    Num
    Sessions
    in jsp (c:\tomcat\webapps\examples\web-inf\jsp) i have
    applet          
    I think this is enough to give correct answer for me .
    Thanks

  • MySQL database connections supported?

    Hi,
    I am trying to connect to mysql database using the 'write to database' and 'query database' activities of utilities.
    I have used it successfully for MS SQL but am not able to work with MySQL. I have created the ODBC connection to MySQL database and am able to successfully test connection to mysql database from the 'odbc datasource administrator' window of administrative
    tools.Also able to retrieve the databse names in this window.
    However when I run the write to DB activity to use this ODBC connection, i get the below error (tkt is the name of the 'table').
    Database error has occurred. [MySQL][ODBC 5.3(a) Driver][mysqld-5.6.21]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''tkt'' at line 1
     Code = 80040e14
     Code meaning = IDispatch error #3092
     Source = Microsoft OLE DB Provider for ODBC Drivers
     Description = [MySQL][ODBC 5.3(a) Driver][mysqld-5.6.21]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''tkt'' at line 1
    Any compatibility issues or anything else?

    Hello,
    I can reproduce the issue with exactly the same error code. Query database ran without problem except write to database. I also tried to use SQL server instead, and it succeeded.
    I saw the same error with SQL server at first because I used the wrong database. So I’m not sure if we need additional implement with MySQL.
    As suggested, run the same task with script should be a good workaround.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Mysql database "Invalid authorization specification:"

    Hi,
    we are using mysql database in our server. i ve created one database name and restored the data into that and i ve granted the all previliges for that user with one username and password. Now i ve written a java program to access that data base. and i am running that java program in server using one script. while i am running my java program in server. i am getting following exception message.
    Database: jdbc:mysql://ip. . . /xxxtesst
    user: xxxtest
    password: xxxtest
    <DbCall> doSomething Error 1: null
    java.sql.SQLException: Invalid authorization specification: Access denied for user 'xxxtest'@'app1.dmz.mysite.com' (using password: YES)
    java.sql.SQLException: Invalid authorization specification: Access denied for user 'xxxtest'@'app1.dmz.mysite.com' (using password: YES)
    at org.gjt.mm.mysql.MysqlIO.init(Ljava.lang.String;Ljava.lang.String;)V(Unknown Source)
    at org.gjt.mm.mysql.Connection.connectionInit(Ljava.lang.String;ILjava.util.Properties;Ljava.lang.String;Ljava.lang.String;Lorg.gjt.mm.mysql.Driver;)V(Unknown Source)
    at org.gjt.mm.mysql.jdbc2.Connection.connectionInit(Ljava.lang.String;ILjava.util.Properties;Ljava.lang.String;Ljava.lang.String;Lorg.gjt.mm.mysql.Driver;)V(Unknown Source)
    at org.gjt.mm.mysql.Driver.connect(Ljava.lang.String;Ljava.util.Properties;)Ljava.sql.Connection;(Unknown Source)
    at java.sql.DriverManager.getConnection(Ljava.lang.String;Ljava.util.Properties;Ljava.lang.ClassLoader;)Ljava.sql.Connection;(Unknown Source)
    at java.sql.DriverManager.getConnection(Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;)Ljava.sql.Connection;(Unknown Source)
    at escrow.LandamDbremove.findnewrecords()V(LandamDbremove.java:205)
    at escrow.LandamDbremove.main([Ljava.lang.String;)V(LandamDbremove.java:761)
    Exception in Main : java.sql.SQLException: Invalid authorization specification: Access denied for user 'xxxtest'@'app1.dmz.mysite.com' (using password: YES)
    Note: i ve given currect username, password, database name in my program.

    When setting up users it is possible to restrict access by ip. You may have full priviledges as 'slai@localhost" but not as '[email protected]' . Check the user tables and see.

  • Cs3 connect to mysql database

    hi,
    i am having problems with my xp machine running cs3. when i try to connect to mysql database it throws back http error code 405 method not allowed.
    i downloaded the script replacement files after googling however that still never resolved the issue. can anyone help?
    many thanks

    This may, or may not, help...
    For those using MySQL - Installing PHP and MySQL on Windows
    XP
    http://www.webassist.com/professional/products/solutionrecipes.asp

  • MySQL Database Index Page

    I'm looking for a way to create an index of my MySQL database tables. The basic concept is to have a list of the table names on the left hand side of the page. Clicking on a name will bring up the database contents (repeated to display each record) o nthe right hand side. Any idea or tutorial on how to accomplish this? Thanks!

    Okay, great! I worked with it and modified it a tiny bit to insert a DW table into the results. But when I Insert the php script into each table block, it displays only the first column of data, not the rest.
    <?php
    // connect to database
    $conn = new mysqli('localhost' , 'user' , 'pw' , 'dbase');
    ?>
    <?php
    // get table names from database
    $listTables = $conn->query("show tables") or die($conn->error);
    // get table names from link
    $table_name = $_GET['table_name'];
    if(isset($table_name)) {
    $sql = 'SELECT * FROM '.$table_name.'';
    $getTableList = $conn->query($sql) or die($conn->error);
    ?>
    <!DOCTYPE HTML>
    <html>
    <head>
    <meta charset="UTF-8">
    <title>Bulldog Pain</title>
    <style>
    #pageWrapper {
        width: 750px;
        margin: 0 auto;
    #tableList {
        float: left;
        width: 350px;
    #results {
        float: left;
        width: 400px;
    </style>
    </head>
    <body>
    <div id="pageWrapper">
    <div id="tableList">
    <h2>Table List</h2>
    <?php
    while($printTables = mysqli_fetch_array($listTables)) {
    echo "<a href='list_tables.php?table_name=$printTables[0]'>$printTables[0]</a> <br>";  
    ?>
    </div>
    <!-- end tableList -->
    <div id="results">
    <h2>Results</h2>
    <table width="80%" border="1">
      <tr>
        <th scope="col">Date</th>
        <th scope="col">Patient</th>
        <th scope="col">RX</th>
        <th scope="col">Refills</th>
      </tr>
      <tr>
        <td height="26">
        <?php
    while($row = $getTableList->fetch_assoc()) {
    echo $row['B']."<br>";
    ?>
        </td>
        <td>
            <?php
    while($row = $getTableList->fetch_assoc()) {
    echo $row['A']."<br>";
    ?>
        </td>
        <td>
            <?php
    while($row = $getTableList->fetch_assoc()) {
    echo $row['F']."<br>";
    ?>
        </td>
        <td>
            <?php
    while($row = $getTableList->fetch_assoc()) {
    echo $row['C']."<br>";
    ?>
        </td>
      </tr>
    </table></p>
    </div>
    <p><!-- end results -->
    <!-- end pageWrapper --></p>
    </div>
    </body>
    </html>

  • Cleaning VM Manager MySQL Database

    Hi,
    I am looking to clean a server pool completely and recreate it after some issues with heartbeating caused by a network fault caused all sorts of heartbeat / config problems. Have been working through a fix with Oracle support and have cleaned all VM servers in the pool.
    The next step as advised by support is to clean the vm database using the the ovm_upgrade.sh script:
    sh ./ovm_upgrade.sh dbuser=<user> dbpass=<passwd> dbhost=<hostname> dbport=1521 dbsid=<sid> deletedb
    This fails when i run it with message:
    "2013-03-20 09:24:34,847 ERROR Failed to connect to Database! Error: **
    java.lang.StringIndexOutOfBoundsException: String index out of range: 14137"
    The dbport number provided hints that this script is for an Oracle database which may be what is causing the error. Does anyone have any advice on cleaning the Oracle VM Manager db when using a mysql database?
    We are running Oracle VM manager 3.2.1 on Scientific Linux release 6.3 (Carbon) x86_64.
    Thanks,

    Fixed. I think it was a problem related to the hostname.

  • Runtime error during createStatement() trying to connect to MySQL database

    I am trying to make a script to access a MySQL database over the internet. I can get this to work on my home server using PHP, but I can't figure out why my code below is not working. I get a runtime error in the conn.createStatement() line but I can't figure out what the problem is... Any help is appreciated...
    import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; public class sqltest extends Activity {                 Connection conn=null; try { // from http://help.godaddy.com/topic/319/article/262 conn = DriverManager.getConnection( "jdbc:mysql://profiles.db.1111111.hostedresource.com:3306/dbname", "dbname", "password"); } catch (SQLException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } try { // Create a result set containing all data from mysql_all_table Statement stmt = conn.createStatement(); ResultSet rs = stmt.executeQuery("SELECT * FROM *");                 } }
    PS: I am developing this code for android using Eclipse, but I think the issue is a pure java code related...

    You catch the conection exception and keep on going. So 'conn' is null. That produces a null pointer exception at the createStatement() line. Which I am guessing the IDE tells you exactly that.

Maybe you are looking for

  • Yosemite apple mail select all messages in conversation

    It appears that Mail/View/Select/All Messages In This Conversation no longer works. The message list UI appears to indicate there are multiple messages in a conversation (they are highlighted, but not selected), but the above listed menu item is grey

  • Need help I can't install windows 7 to my SATA HD

    need help I can't install windows 7 to my SATA hard drive, when it gets to the part of selecting a drive partition to install windows it tells me my hardware does not support booting to this disk check that the disk's controller is enabled in the bio

  • Copyright laws with itunes for video productions...

    i want to sell some dvds of some slideshow/movie productions i have produced. i want, at this time, to sell them as a fundraiser for my church but would like to continue making more productions for profit. I use my own photos for these but have used

  • Can anyone tell me if the errors are to high pleas...

    My connection seems to be very slow only getting about 0.5 Mbps download. Any help suggestions etc. would be much appreciated. Stats are as below: Line state Connected Connection time 1 days, 03:15:14 Downstream 2,507 Kbps Upstream 810 Kbps     ADSL

  • Error in printing HP3015 series printer

    Dear all,           While printing a Smart form through HP Laser Jet 3015 printer the print is getting cut from left side.But when the same print is generated through HP Laser Jet 2035 printer the print is coming totally fine. At first both printers