Both panel data and mixed effect model data deal with double indexed random variables $y_{ij}$. First index is for group, the second is for individuals within the group. For the panel data the second index is usually time, and it is assumed that we observe individuals over time. When time is second index for mixed effect model the models are called longitudinal models. The mixed effect model is best understood in terms of 2 level regressions. (For ease of exposition assume only one explanatory variable)
First level regression is the following
$$y_{ij}=\alpha_i+x_{ij}\beta_i+\varepsilon_{ij}.$$
This is simply explained as individual regression for each group. The second level regression tries to explain variation in regression coefficients:
$$\alpha_i=\gamma_0+z_{i1}\gamma_1+u_i$$
$$\beta_i=\delta_0+z_{i2}\delta_1+v_i$$
When you substitute the second equation to the first one you get
$$y_{ij}=\gamma_0+z_{i1}\gamma_1+x_{ij}\delta_0+x_{ij}z_{i2}\delta_1+u_i+x_{ij}v_i+\varepsilon_{ij}$$
The fixed effects are what is fixed, this means $\gamma_0,\gamma_1,\delta_0,\delta_1$. The random effects are $u_i$ and $v_i$.
Now for panel data the terminology changes, but you still can find common points. The panel data random effects models is the same as mixed effects model with
$$\alpha_i=\gamma_0+u_i$$
$$\beta_i=\delta_0$$
with model becomming
$$y_{it}=\gamma_0+x_{it}\delta_0+u_i+\varepsilon_{it},$$
where $u_i$ are random effects.
The most important difference between mixed effects model and panel data models is the treatment of regressors $x_{ij}$. For mixed effects models they are non-random variables, whereas for panel data models it is always assumed that they are random. This becomes important when stating what is fixed effects model for panel data.
For mixed effect model it is assumed that random effects $u_i$ and $v_i$ are independent of $\varepsilon_{ij}$ and also from $x_{ij}$ and $z_i$, which is always true when $x_{ij}$ and $z_i$ are fixed. If we allow for stochastic $x_{ij}$ this becomes important. So the random effects model for panel data assumes that $x_{it}$ is not correlated with $u_i$. But the fixed effect model which has the same form
$$y_{it}=\gamma_0+x_{it}\delta_0+u_i+\varepsilon_{it},$$
allows correlation of $x_{it}$ and $u_i$. The emphasis then is solely for consistently estimating $\delta_0$. This is done by subtracting the individual means:
$$y_{it}-\bar{y}_{i.}=(x_{it}-\bar{x}_{i.})\delta_0+\varepsilon_{it}-\bar{\varepsilon}_{i.},$$
and using simple OLS on resulting regression problem. Algebraically this coincides with least square dummy variable regression problem, where we assume that $u_i$ are fixed parameters. Hence the name fixed effects model.
There is a lot of history behind fixed effects and random effects terminology in panel data econometrics, which I omitted. In my personal opinion these models are best explained in Wooldridge's "Econometric analysis of cross section and panel data". As far as I know there is no such history in mixed effects model, but on the other hand I come from econometrics background, so I might be mistaken.
Best Answer
You can account for certain unobserved heterogeneity in panel, called correlated random effects, if you are willing to make certain assumptions about the correlation of the unobserved heterogeneity with the observed regressors.
Let us say $y_{it}$ is your outcome of interest (perhaps a binary variable), $X_{it}$ are observable individual characteristics, $\gamma_{i}$ is a time-invariant unobserved individual effect and $u_{it}$ are independent errors (possibly correlated over time) and you are interested in (I do not use here any non-identical link function for a possible binary outcome for simplicity reasons)
$y_{it} = \beta_0 + \beta_1 X_{it} + \gamma_i + u_{it}$
Keep it mind that fixed effects allows for an arbitrary correlation between unobserved time-invariant indidivual heterogeneity and other characteristics $Cov(\gamma_i,X_{it})$ while in the random-effects world there must not be any correlation $Cov(\gamma_i,X_{it})=0$. If you know that the unobserved heterogeneity in your panel data depends on observed characteristics in a certain way you can model it. A famous example is by using the individual mean of the observed variables over time, see Mundlak (1978):
$\gamma_i = \alpha_0 + \alpha_1 \bar{X}_i + \epsilon_i$
But it is very crucial that your assumptions about the specific dependency hold. A more general has been introduced by Chamberlain (1982).
Imbens and Wooldridge talk about these methods in their lecture series:
http://www.nber.org/WNE/lect_2_linpanel.pdf
And here is another source discussing these topics:
http://www.u.arizona.edu/~hirano/696_2010/ln10.pdf