السلام عليكم ، اخواني بعض برامج php تتطلب وضع كود في احد ملفات mysql في حال طلب ذلك والكود يكون غالباً هو خاس باسم مستخدم البرنامج admin وكلمة السر وبحكم إني ما اعرف في مجال mysql الكثير ياريت لو تخدموني هالخدمة دخيلكم ، لقيت برنامج مجلة والله العظيم شي خطير وهذه جزء من صورة له
الحين يا اخوان اللي ابيه هو كيفية اضافة الكود اللي هو حق admin وكلمة السر تبعته ، مع العلم اني وجدت في ملف readme هالشي :
you will need to add your admin users. add a user like this:
#mysql -uroot -pfoobar halcyon
mysql> INSERT INTO users VALUES ("admin", "pass");
myqsl> exit;
كيف اقدر اضيفه على ملف mysql
وهذا هو محتوى ملف mysql:
# MySQL dump 8.14
#
# Host: localhost Database: test
#--------------------------------------------------------
# Server version 3.23.40
#
# Table structure for table 'halcyon_about'
#
CREATE TABLE halcyon_about (
about text,
date timestamp(14) NOT NULL
) TYPE=MyISAM;
#
# Dumping data for table 'halcyon_about'
#
INSERT INTO halcyon_about VALUES ('halcyon 1.07',20010911194047);
#
# Table structure for table 'halcyon_blocks'
#
CREATE TABLE halcyon_blocks (
id tinyint(4) NOT NULL auto_increment,
title varchar(100) default NULL,
content text,
type enum('S','D') NOT NULL default 'S',
PRIMARY KEY (id)
) TYPE=MyISAM;
#
# Dumping data for table 'halcyon_blocks'
#
#
# Table structure for table 'halcyon_channels'
#
CREATE TABLE halcyon_channels (
id int(3) NOT NULL auto_increment,
rdf varchar(255) NOT NULL default '',
PRIMARY KEY (id)
) TYPE=MyISAM;
#
# Dumping data for table 'halcyon_channels'
#
INSERT INTO halcyon_channels VALUES (12,'http://www.whackpack.com/backend.php');
INSERT INTO halcyon_channels VALUES (11,'http://www.codices.net/backend.php');
INSERT INTO halcyon_channels VALUES (13,'http://www.freshmeat.net/backend/fm.rdf');
INSERT INTO halcyon_channels VALUES (14,'http://www.slashdot.org/slashdot.rdf');
#
# Table structure for table 'halcyon_comments'
#
CREATE TABLE halcyon_comments (
comment_id int(11) NOT NULL auto_increment,
comment_sid int(11) NOT NULL default '0',
comment_poster varchar(50) NOT NULL default '',
comment_host varchar(255) NOT NULL default '',
comment_email varchar(50) NOT NULL default '',
comment_subject varchar(255) NOT NULL default '',
comment_text text NOT NULL,
comment_published datetime NOT NULL default '0000-00-00 00:00:00',
PRIMARY KEY (comment_id),
UNIQUE KEY comment_id (comment_id),
KEY comment_id_2 (comment_id)
) TYPE=MyISAM;
#
# Dumping data for table 'halcyon_comments'
#
INSERT INTO halcyon_comments VALUES (1,1,'الاسم المستعار','','','المشاركات',' ','2001-09-11 19:39:47');
#
# Table structure for table 'halcyon_config'
#
CREATE TABLE halcyon_config (
id tinyint(3) NOT NULL default '1',
sitename varchar(255) default NULL,
siteslogan varchar(255) default NULL,
titlebartitle varchar(255) default NULL,
titlebarslogan varchar(255) default NULL,
author varchar(100) NOT NULL default '',
email varchar(255) default NULL,
theme varchar(255) default NULL,
display_quote char(3) NOT NULL default 'no',
display_comments char(3) NOT NULL default 'yes',
display_links char(3) NOT NULL default 'yes',
display_limit tinyint(3) default NULL
) TYPE=MyISAM;
#
# Dumping data for table 'halcyon_config'
#
INSERT INTO halcyon_config VALUES (1,'','','','','','webmaster@ArabsDar.com','trilogy','no','yes','yes',4);
#
# Table structure for table 'halcyon_links'
#
CREATE TABLE halcyon_links (
id bigint(20) NOT NULL auto_increment,
url text NOT NULL,
name varchar(255) NOT NULL default '',
comment varchar(255) NOT NULL default '',
time timestamp(14) NOT NULL,
PRIMARY KEY (id)
) TYPE=MyISAM;
#
# Dumping data for table 'halcyon_links'
#
INSERT INTO halcyon_links VALUES (4,'http://www.arabbuilder.com/','المطور العربي','',20010314164052);
INSERT INTO halcyon_links VALUES (10,'http://www.arabsgate.com','بوابة العرب','الصفحة الرئيسية',20010911194028);
INSERT INTO halcyon_links VALUES (7,'http://www.mabsoot.net','مبسوط','بسوط',20010801175043);
INSERT INTO halcyon_links VALUES (9,'http://swalif.net.com','سوالف','',20010904122139);
#
# Table structure for table 'halcyon_news'
#
CREATE TABLE halcyon_news (
id int(11) NOT NULL auto_increment,
body text,
mood varchar(255) default NULL,
song varchar(255) default NULL,
timestamp bigint(20) NOT NULL default '0',
topic varchar(255) default NULL,
description varchar(255) default NULL,
user varchar(25) default NULL,
nl2br char(3) NOT NULL default 'yes',
PRIMARY KEY (id)
) TYPE=MyISAM;
#
# Dumping data for table 'halcyon_news'
#
INSERT INTO halcyon_news VALUES (1,'المتغيرات :\r\n<li>لا تستطيع إلغاء أو تعديل أي شيء .\r\n<li>البحث في الاخبار والمواضيع\r\n<li>موقع عشوائي\r\n<li>استخدام الوضع المتقدم .','N/A','N/A',1000251560,'مشاركة جديدة','مشاركة جديدة','root','yes');
#
# Table structure for table 'halcyon_quotes'
#
CREATE TABLE halcyon_quotes (
qid int(10) unsigned NOT NULL auto_increment,
quote text,
who text,
PRIMARY KEY (qid)
) TYPE=MyISAM;
#
# Dumping data for table 'halcyon_quotes'
#
#
# Table structure for table 'halcyon_users'
#
CREATE TABLE halcyon_users (
username varchar(15) NOT NULL default '',
password varchar(15) NOT NULL default '') TYPE=MyISAM;
#
# Dumping data for table 'halcyon_users'
#
ارجوكم يا اخوان ساعدوني والله العظيم البرنامج جاهز ومعرب من مجاميعه ، لكن بقيت لي هالحاجة هي اللي وقفت لي في الحلق
تحياتي للجميع