Mysql Installer Script

Started on the old forum in May 2008 · view the original in the archive · old links redirect here

9 replies · 1,170 views · started 18 years ago · 1 min read

3 participants
SpiderWap Lead · 622 posts #1

Hi peeps.

This is a very simple script that i coded, and i find it very usefull when doing scripts on my local pc.

What it does is you can easly run sql queries or upload sql files into a database.

I don't recomment having this file on a web surver though, it could be very dodgy, or you could perhaps upload, do your stuff and delete it again, but i wont take any responsouble for any damage done.

lol i cant post a demo otherwise my site would be down in a few minutes, but here, hope someone else can find it usefull to. lol

Attachments: mysql_installer.rar
subzero Super moderator Fellow · 3,954 posts #2

remember ?> and <? more then ?> this is your 2 times lol again lol

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

subzero Super moderator Fellow · 3,954 posts #5

ok cool External image (may be gone)

also you wont to check a error

</textarea> has no ending

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

subzero Super moderator Fellow · 3,954 posts #7

it dont work on my server i cant add nothing

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

subzero Super moderator Fellow · 3,954 posts #9

it works on a server has mysql upost lol i have it trun off bro lol

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

kiLLeR-eyEd_14 Senior · 382 posts #10

This one's fixed by me,

<?
//put ur db details here
$dbuser = "";
$dbpass = "";
$dbname = "";
$dbhost = "";
mysql_connect("$dbhost","$dbuser","$dbpass") or die(mysql_error()); 
mysql_select_db("$dbname") or die(mysql_error());
$action=$_GET['action'];
echo "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<?
echo "<head>";
echo "<title>SQL Query</title>";
echo '<style type="text/css">
body {
  font-family: arial, sans-serif;
  font-size: 12px;
  color: #FFFFFF;
  background-color: #000000;
  margin-left: 0px;
  margin-right: 0px;
  margin-top: 0px;
 }

a:link, a:visited { 
text-decoration: underline; 
color:#FF0000
}

a:active { 
text-decoration: underline; 
color:#FF0000
}

a:hover { 
color:#FF0000;
}
</style>';
echo "</head>";
echo "<body>";
if($action=="install")
{
echo "<center>";
$sql = stripslashes($_POST["sql"]);
echo "Query Successfully Executed!!!<br/>";
echo $sql."<br/>";
$res = mysql_query($sql);
echo mysql_error()."<br/><br/>";
echo "<a href=\"mysql.php\">Back</a><br/>";
echo "</center>";
echo "</body>";
echo "</html>";
exit();
}
else
{
echo "<form action=\"mysql.php?action=install\" method=\"post\">";
echo "SQL Query:<br/>";
echo "<textarea name=\"sql\" cols=\"60\" rows=\"5\"></textarea><br/>";
echo "<input type=\"submit\" value=\"Query\"/>";
echo "</form>";
echo "</center>";
echo "</body>";
echo "</html>";
exit();
}

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close