ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Maxim.Savrilov@socenter.ru
To: community@altlinux.ru
Subject: Re: [Comm] MySQL, NetAcct-MySQL and Netstat 3.03
Date: Mon, 31 Mar 2003 15:14:26 +0700
Message-ID: <20030331151426.651ac1a0.Maxim.Savrilov@socenter.ru> (raw)
In-Reply-To: <20030331122353.4f34420a.leutin@rambler.ru>

On Mon, 31 Mar 2003 12:23:53 +0600
Александр Леутин <leutin@rambler.ru> wrote:

[skip]
> победил. Теперь при обращении http://localhost/netstat/admin.php
> выскакивает
> 
> Warning: Supplied argument is not a valid MySQL-Link resource in
> /var/www/html/netstat/admin.php on line 11
> 
> Warning: Supplied argument is not a valid MySQL result resource in
> /var/www/html/netstat/admin.php on line 12
> 
> На строках 11, 12 и 13 там
> $result = mysql_query($query,$db);

вот этот $db и есть MySQL-Link resource
Вы просто не подсоеденились к серверу MySQL
ищите настройки имени пользователя, имени хоста и базы данных

>     if(!$row=mysql_fetch_object($result) OR $row->status != 'admin')
>         { echo "<h3>".$strWrongAuthorization."</h3>"; exit;}
> 

вообще рекомендую начать со следующей последовательности
убедиться, что работает MySQL (процесс есть, пользователи есть, пускает того, кого надо, откуда надо и куда надо)
Убедиться, что работает Apache
Убедиться, что в апачи работает PHP (phpinfo() - отличная штука)
Убедиться, что в пхп включен php-mysql

И уже при всем этом работающем идти далее
Для локализации, так сказать, проблем.



  reply	other threads:[~2003-03-31  8:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-30 10:59 Александр Леутин
2003-03-31  4:27 ` vic ismakaev
2003-03-31  6:23   ` Александр Леутин
2003-03-31  8:14     ` Maxim.Savrilov [this message]
2003-04-01  5:22       ` Александр Леутин
2003-04-02  4:58       ` Александр Леутин
2003-03-31  9:07     ` vic ismakaev
2003-03-31 18:48     ` Pavel Vainerman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030331151426.651ac1a0.Maxim.Savrilov@socenter.ru \
    --to=maxim.savrilov@socenter.ru \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git