Visualizzazione dei risultati da 1 a 6 su 6
  1. #1

    Accesso remoto a Sql Server su Buffalo LinkStation duo

    Ciao a tutti, spero mi concediate le attenuanti del principiante sia per ciò che riguarda il forum che la gestione di database Mysql. Il mio problema è il seguente, non riesco ad accedere da remoto ad un database residente su Nas Buffalo link station che dispone di un servizio Mysql server gestibile con phpadmin. Tramite pc in rete locale riesco a creare una connessione al Dbase residente sul nas senza problemi ma se tento di connettermi via web (la rete ha un indirizzo ip pubblico statico) mi da errore di conessione (10060). Guardando qua e la in google ho visto molti thread in cui si parlava di modificare alcune stringhe all'interno di un file con estensione cnf , binder address e skip networking se non ricordo male. Il prolbema è che all'interno del Nas non esiste nessu file e nessun percorso che porti al file stesso, è possibile solo accedere alla configurazione del dbase attraverso Phpadmin che da la possibilità di attribuiere i privilegi agli utenti e altre funzioni relative al dbase, ma per quanto riguarda l'accesso remoto io non ho trovato nulla che potesse risalire all'abilitazione di mysql per l'accesso remoto. Qualcuno mi puo aiutare? Vi sare infinitamente grato

  2. #2
    Il db MySQL dove e' installato?
    Non si può risolvere un problema usando lo stesso modo di pensare che ha creato quel problema.
    Albert Einstein

    Siate Affamati, siate Folli, siate Onesti e siate Generosi

  3. #3
    Il Db è installato sul Nas Buffalo. Il nas dispone di un mysql server (preinstallato) accessibile con phpadmin. Da quel che ho capito di default mysql server è impostato per non accettare le connessioni da remoto. In lan locale il db è accessibile senza probblemi, la questione si complica se si deve accedere da remoto. Faccio presente che la rete in questione ha un ip pubblico statico dedicato. Non riesco a capire come si possa accedere alle impostazioni di mysql server per far si che questo accetti le connessioni d all'esterno. L'unico appiglio è la possibilità di accedere al flie php.ini residente sul nas che gestisce l'unità sia in modalità web server che in modalità mysql server però non so che stringhe modificare e/o aggiungere. Grazie di aver risposto

  4. #4
    si, mysql e' configurato di default per non accettare connessioni remote.

    Tuttavia con pochi semplici passi si puo cambiare questa impostazione.

    In particolare dovresti trovare il file my.cnf e commentare la sezione dove indica localhost , mi sembra si chiami bind-address

    In genere il file si trova in un punto preciso che varia a seconda del Sistema operativo .

    Prova a vedere se riesci a rintracciare tale file.
    Non si può risolvere un problema usando lo stesso modo di pensare che ha creato quel problema.
    Albert Einstein

    Siate Affamati, siate Folli, siate Onesti e siate Generosi

  5. #5
    Avevo già provato , ma sul nas non esiste nessun file con questa estensione. Esiste unicamente la possibilità di modificare il file php.ini in cui sono presenti una sezione [MSQL] e una sezione [MSQLi] . Ti posto le 2 sezioni:
    [MySQL]
    ; Allow or prevent persistent links.
    mysql.allow_persistent = On
    ; Maximum number of persistent links. -1 means no limit.
    mysql.max_persistent = -1
    ; Maximum number of links (persistent + non-persistent). -1 means no limit.
    mysql.max_links = -1
    ; Default port number for mysql_connect(). If unset, mysql_connect() will use
    ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
    ; compile-time value defined MYSQL_PORT (in that order). Win32 will only look
    ; at MYSQL_PORT.
    mysql.default_port =
    ; Default socket name for local MySQL connects. If empty, uses the built-in
    ; MySQL defaults.
    mysql.default_socket =
    ; Default host for mysql_connect() (doesn't apply in safe mode).
    mysql.default_host =
    ; Default user for mysql_connect() (doesn't apply in safe mode).
    mysql.default_user =
    ; Default password for mysql_connect() (doesn't apply in safe mode).
    ; Note that this is generally a *bad* idea to store passwords in this file.
    ; *Any* user with PHP access can run 'echo get_cfg_var("mysql.default_password")
    ; and reveal this password! And of course, any users with read access to this
    ; file will be able to reveal the password as well.
    mysql.default_password =
    ; Maximum time (in seconds) for connect timeout. -1 means no limit
    mysql.connect_timeout = 60
    ; Trace mode. When trace_mode is active (=On), warnings for table/index scans and
    ; SQL-Errors will be displayed.
    mysql.trace_mode = Off
    [MySQLi]
    ; Maximum number of links. -1 means no limit.
    mysqli.max_links = -1
    ; Default port number for mysqli_connect(). If unset, mysqli_connect() will use
    ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
    ; compile-time value defined MYSQL_PORT (in that order). Win32 will only look
    ; at MYSQL_PORT.
    mysqli.default_port = 3306
    ; Default socket name for local MySQL connects. If empty, uses the built-in
    ; MySQL defaults.
    mysqli.default_socket =
    ; Default host for mysql_connect() (doesn't apply in safe mode).
    mysqli.default_host =
    ; Default user for mysql_connect() (doesn't apply in safe mode).
    mysqli.default_user =
    ; Default password for mysqli_connect() (doesn't apply in safe mode).
    ; Note that this is generally a *bad* idea to store passwords in this file.
    ; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw")
    ; and reveal this password! And of course, any users with read access to this
    ; file will be able to reveal the password as well.
    mysqli.default_pw =
    ; Allow or prevent reconnect
    mysqli.reconnect = Off

  6. #6
    Quote Originariamente inviata da faber1962 Visualizza il messaggio
    Avevo già provato , ma sul nas non esiste nessun file con questa estensione. Esiste unicamente la possibilità di modificare il file php.ini in cui sono presenti una sezione [MSQL] e una sezione [MSQLi] . Ti posto le 2 sezioni:
    [MySQL]
    ; Allow or prevent persistent links.
    mysql.allow_persistent = On
    ; Maximum number of persistent links. -1 means no limit.
    mysql.max_persistent = -1
    ; Maximum number of links (persistent + non-persistent). -1 means no limit.
    mysql.max_links = -1
    ; Default port number for mysql_connect(). If unset, mysql_connect() will use
    ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
    ; compile-time value defined MYSQL_PORT (in that order). Win32 will only look
    ; at MYSQL_PORT.
    mysql.default_port =
    ; Default socket name for local MySQL connects. If empty, uses the built-in
    ; MySQL defaults.
    mysql.default_socket =
    ; Default host for mysql_connect() (doesn't apply in safe mode).
    mysql.default_host =
    ; Default user for mysql_connect() (doesn't apply in safe mode).
    mysql.default_user =
    ; Default password for mysql_connect() (doesn't apply in safe mode).
    ; Note that this is generally a *bad* idea to store passwords in this file.
    ; *Any* user with PHP access can run 'echo get_cfg_var("mysql.default_password")
    ; and reveal this password! And of course, any users with read access to this
    ; file will be able to reveal the password as well.
    mysql.default_password =
    ; Maximum time (in seconds) for connect timeout. -1 means no limit
    mysql.connect_timeout = 60
    ; Trace mode. When trace_mode is active (=On), warnings for table/index scans and
    ; SQL-Errors will be displayed.
    mysql.trace_mode = Off
    [MySQLi]
    ; Maximum number of links. -1 means no limit.
    mysqli.max_links = -1
    ; Default port number for mysqli_connect(). If unset, mysqli_connect() will use
    ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
    ; compile-time value defined MYSQL_PORT (in that order). Win32 will only look
    ; at MYSQL_PORT.
    mysqli.default_port = 3306
    ; Default socket name for local MySQL connects. If empty, uses the built-in
    ; MySQL defaults.
    mysqli.default_socket =
    ; Default host for mysql_connect() (doesn't apply in safe mode).
    mysqli.default_host =
    ; Default user for mysql_connect() (doesn't apply in safe mode).
    mysqli.default_user =
    ; Default password for mysqli_connect() (doesn't apply in safe mode).
    ; Note that this is generally a *bad* idea to store passwords in this file.
    ; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw")
    ; and reveal this password! And of course, any users with read access to this
    ; file will be able to reveal the password as well.
    mysqli.default_pw =
    ; Allow or prevent reconnect
    mysqli.reconnect = Off
    no da qui non mi sembra si possa fare niente.

    Comunque, se hai installato mysql deve necessariamente esserci il file my.cnf

    Se non puoi vederlo tu qualcuno deve poterlo vedere
    Non si può risolvere un problema usando lo stesso modo di pensare che ha creato quel problema.
    Albert Einstein

    Siate Affamati, siate Folli, siate Onesti e siate Generosi

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.