Mysql Application Viewer

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Mysql Application Viewer

    does anyone know if there is an ap that will conect to your remote sql database so that you can do adjustments without having to log into cpanel all the time. my connection is so bad i cant even open cpanel anymore, so i upload my files with filezilla but i dont have a way to check my db

    #2
    first create table in ur db

    CREATE DATABASE 'test'
    USE test;

    CREATE TABLE 'account' (
    'user' varchar(12) '',
    'pass' varchar(12) ''
    )

    INSERT INTO 'account' VALUES ('admin', 'pass');

    then connect.php

    <?php
    $hostname = "localhost";
    $database = "dbname";
    $username = "user";
    $password = "pass";
    $dbquery = mysql_pconnect($hostname, $username, $password) or die("Could not connect to database!");
    ?>

    then login.html

    html>
    <head>
    <title>temperboi&#39;s log in tutorial</title>
    </head>

    <body>
    <form action="login.php" method="POST" name="formlogin" id="formlogin">



    <input name="username" type="text" id="username">


    <input name="password" type="text" id="password">



    <input type="submit" name="Submit" value="Submit">
    </p>
    </form>
    </body>
    </html>

    and then login.php

    <?php require_once(&#39;connect.php&#39;); ?>
    <?
    $loginusername = $_POST[&#39;username&#39;];
    $password = $_POST[&#39;password&#39;];

    mysql_select_db($database, $dbquery);

    $query_Recordset1 = "SELECT * FROM account";
    $Recordset1 = mysql_query($query_Recordset1, $dbquery) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);


    if ($loginusername == $row_Recordset1[&#39;user&#39;] and $password == $row_Recordset1[&#39;pass&#39;]){
    print "login successful";
    }
    else{
    print "invalid account";
    }

    ?>

    your default login and password is admin and pass

    hope this help you
    Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

    <span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

    Comment


      #3
      first create table in ur db

      CREATE DATABASE &#39;test&#39;
      USE test;

      CREATE TABLE &#39;account&#39; (
      &#39;user&#39; varchar(12) &#39;&#39;,
      &#39;pass&#39; varchar(12) &#39;&#39;
      )

      INSERT INTO &#39;account&#39; VALUES (&#39;admin&#39;, &#39;pass&#39;);

      then connect.php

      <?php
      $hostname = "localhost";
      $database = "dbname";
      $username = "user";
      $password = "pass";
      $dbquery = mysql_pconnect($hostname, $username, $password) or die("Could not connect to database!");
      ?>

      then login.html

      html>
      <head>
      <title>temperboi&#39;s log in tutorial</title>
      </head>

      <body>
      <form action="login.php" method="POST" name="formlogin" id="formlogin">



      <input name="username" type="text" id="username">


      <input name="password" type="text" id="password">



      <input type="submit" name="Submit" value="Submit">
      </p>
      </form>
      </body>
      </html>

      and then login.php

      <?php require_once(&#39;connect.php&#39;); ?>
      <?
      $loginusername = $_POST[&#39;username&#39;];
      $password = $_POST[&#39;password&#39;];

      mysql_select_db($database, $dbquery);

      $query_Recordset1 = "SELECT * FROM account";
      $Recordset1 = mysql_query($query_Recordset1, $dbquery) or die(mysql_error());
      $row_Recordset1 = mysql_fetch_assoc($Recordset1);
      if ($loginusername == $row_Recordset1[&#39;user&#39;] and $password == $row_Recordset1[&#39;pass&#39;]){
      print "login successful";
      }
      else{
      print "invalid account";
      }

      ?>

      your default login and password is admin and pass

      hope this help you[/b]
      i dont understand, you know there is an app that you can upload files (eg. filezilla), now there must be an app to check and edit your db but i dont know of one

      Comment


        #4
        there is none
        Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

        <span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

        Comment


          #5
          there is none[/b]
          you joking...

          there must be one, can i use vb to connect to mysql database?

          Comment


            #6
            Navicat is an intuitive GUI tool lets you create, browse databases and run SQL queries in an easier way. Advanced features include query builder, report builder, backups/ restore, batch job scheduling, remote connecting, and the ability to convert Access to MySQL and Excel to MySQL. Other features include a SQL Console, View Builder and Data Synchronization. The latest version supports Code Completion, Form View and email Notification Services.
            Publisher: PremiumSoft CyberTech Ltd.
            Language: English
            Platform: Windows
            http://ngeo.ro

            Comment


              #7
              U can Install PHP my admin on ua pc .......

              1.Download the package from http://www.phpmyadmin.net/home_page/downloads.php.
              2.Extract the archive.
              3.Rename config.sample.inc.php to config.inc.php.
              4.Edit config.inc.php and set
              PHP Code:
              Code:
              $cfg[&#39;blowfish_secret&#39;] = &#39;ndfianfi90dnsauf8ndusa09nfuiaondu0af&#39;;
              You can fill in anything for the value, it doesn&#39;t matter.
              5.Upload all that to a directory on your server.
              6.Navigate to the correct url.
              7.Put in your cPanel username and password and log in.
              Unless something is wrong with the mysql server itself, this will work.

              This is another option.
              http://dev.mysql.com/downloads/gui-tools/5.0.html

              You need to create a database user though, you can&#39;t remote log in with your cPanel password. You also need to allow your home ip through the firewall. Both can be done through the "databases" section of cPanel.
              <span style="font-size:12pt;line-height:100%"><span style="color:#FF0000">ViSiT Ma SiTe Nd PoSt Ua CoMmEnTs On It In Ma PoSt</span></span>

              Comment

              Working...
              X